GithubHelp home page GithubHelp logo

moss-script-for-java-project's Introduction

MOSS Script for Java Project Comparison

A Python script to compare Java projects using Stanford's MOSS plagiarism detection system.

The script operates in directory mode, allowing it to compare a project with multiple files instead of just a single file.

Install Dependencies

pip install -r requirements.txt

Set Up Your MOSS user ID

  1. Go to MOSS and register for a user ID.

  2. Create a config.ini file in the root directory and add the following line to it:

    [moss]
    userid = 123456789  # Replace this with your user ID

Run the Script

  1. Create a folder containing the base files and another folder containing the files you want to compare, the structure of the folders should be as follows:

    .
    ├── base_folder
    |   ├── templateA.java
    |   └── templateB.java
    └── comparing_folder
        ├── student1
        |   ├── Homework.java
        |   └── Helper.java
        └── student2
            ├── Homework.java
            └── Helper.java
    
  2. Execute the following command:

    python moss.py
  3. A pop-up window will appear asking you to select the base folder and the comparing folder, if there is no base folder (no template code), simply press 'Cancel' on the pop-up window.

  4. Wait for the script to finish executing. The results will be displayed in the terminal and a link to the MOSS report will be generated.

moss-script-for-java-project's People

Contributors

slope86 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.