Git Product home page Git Product logo

mosspyt's Introduction

MossPyt

A productivity tool that can do plagiarism check using Moss for all python assignment in github classroom.

Requirements

  • Chrome browser with RDP enabled

    To run MossPyt, you must have Chrome installed and launch Chrome with Remote Debugging Port enabled. The reason why I use this approach is because, with RDP enabled, Chrome will store the login session of our GitHub Classroom account so that whenever we run this tool again it will automatically access the student assignments without having to re-authenticate.

    • Launch Chrome with RDP

      • Windows:

        ```bash
        /path/to/chrome --remote-debugging-port=port_number --user-data-dir=/path/to/any/directory/where/you/want/to/set/your/chrome/profile https://yoursite.com
        ```
        
      • Mac:

        ```
        /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=port_number --user-data-dir=/path/to/any/directory/where/you/want/to/set/your/chrome/profile https://yoursite.com
        ```
        
      • Example:

        ```bash
        # launch chrome and open classroom homepage
        /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=8989 --user-data-dir=~/chrome-rdp https://classroom.github.com/classrooms
        ```
        
    • When first launch Chrome with RDP, don't sync with your existing google account. alt text

    • After that, make sure to have your GitHub Classroom account logged in. alt text

  • Moss account

    • Register Moss account (here)
      • To obtain a Moss account, send a mail message (without subject) to [email protected]. The body of the message should appear like the format below:

        registeruser
        mail username@domain <-- change this to your existing email
        
      • After receive reply from MOSS, proceed to copy the script from the email and save it as moss.pl to this project directory. The email should appear like this alt text

      • Set permission on moss.pl using chmod ug+x <file>

        chmod ug+x moss.pl
  • Python

  • Selenium (reference

  • BeautifulSoup (reference

  • GitPython (reference)

Setup

  • Clone repo
  • Add new outputs and sources directories.

Usage

  • Execute the run.sh file in the terminal:

    ./run.sh

    After running the script, it will ask for some input, such as:

    • Port Number: <current_chrome_rdp_port>
    • Classroom Assignment URL: <assignment_url>
    • Repo Prefix URL: <repo_prefix_url>
      • Example:
        • students repo URL https://github.com/FTDS-assignment-bay/p0-ftds017-hck-g1-Ayslove
        • so the prefix will be https://github.com/FTDS-assignment-bay/p0-ftds017-hck-g1
    • Select file format: <file_format> or leave blank for .ipynb file
  • Ouput Example: alt text alt text

Reference

mosspyt's People

Contributors

yudantoanas avatar

Stargazers

Vincent Timothy Djaja avatar

Watchers

Lucian avatar  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.