Git Product home page Git Product logo

moss-checker's Introduction

MOSS Checker

Introduction

A MOSS written in Python. The code uses API from moss.py. It is a command line tool, you have to give it a bunch of parameters, as it is noted in the Usage.

You need to register with MOSS to obtain a userid. Instructions here

Usage

It accepts .zip file of the assignments, e.g, Canvas Exported file. And it can also work for source file like .java.

Command line requirements

  • --infile : followed by the name of the .zip file. You can repeat this argument multiple times to include multiple .zip files.
  • -- outfolder : followed by the name of the root folder you want to place the extracted files; it will create this folder
  • --userid : Your MOSS assigned userid
  • --language : Followed by the programming language, e.g, Python, Java
  • --file_ext: source file extension, e.g, py, java

If you need baseline file, create a folder named base at the folder of checker.py, put the baseline files into it manually.

If you have one .zip file, an example command line looks like…

python checker.py --infile submissions.zip --outfolder hw --userid 12345 --language Java

If you have two .zip file, an example command line looks like…

python checker.py --infile submissions.zip --infile submissions2.zip --outfolder hw --userid 12345 --language Java

The program unzip all the assignments, extract each student’s source file into their own folder and then submits them all to MOSS (all file would be removed other than the source file). When it is complete, it writes a ‘report.html’ file you can open to view the results. Refer to the Reading the Results for how to interpret the results.

Python Compatibility

  • Python - v3

moss-checker's People

Contributors

lixiaotuan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.