Giter VIP home page Giter VIP logo

mikkomaran / source-code-similarity-detector Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 435 KB

JavaFX application for detecting similarity between Python source code files using Levenshtein distance as a metric.

License: MIT License

Java 89.47% SCSS 4.18% Python 2.21% CSS 4.14%
plagiarism-detection string-similarity levenshtein-distance javafx java python source-code desktop-application source-code-similarity similarity-detection

source-code-similarity-detector's Introduction

Source code similarity detector

Description

JavaFX application for detecting similarity between Python source code files using Levenshtein distance as a metric. Presents the results as similar clusters and pairs.

Requirements

  • Java JDK version 11+
  • Tested & working on Windows OS

Running the application

Download the Source.code.similarity.detector.jar file from the latest release and run the executable JAR. If double-clicking the JAR doesn't start the program then try running the the following commands from the command line:

  • javaw -jar "path/to/file/Source.code.similarity.detector.jar"
  • javaw -cp "path/to/file/Source.code.similarity.detector.jar" ee.ut.similaritydetector.ui.App

Input files

The application takes input as a ZIP file that is generated from Moodle Virtual Programming Lab (VPL) submissions. The ZIP file contains folders for each student named by the student's name, user number and Moodle username separated with spaces (i.e. "Maran Mikko 999999 xxxx"). Inside student folders are one or multiple submission folders, named by the date and time of that submission. Each submission folder contains all submitted files (i.e. "exercise1.py", "exercise2.py",...). Only the latest submission's files are taken into the analysis.

Features

  • Custom similarity threshold - the user can select a similarity threshold, that is the percentage of similarity for two solutions to be considered suspiciously similar
  • Preproccesing source code files - all comments and empty lines will be removed from source codes before starting the analysis
  • Anonymous results - the results are presented by student user numbers rather than names
  • Code review window - allows reviewing the source codes of suspicious solutions with syntax highlighting
  • Analysis statistics
  • Light & dark theme
  • 2 languages for GUI - Estonian & English

source-code-similarity-detector's People

Contributors

mikkomaran avatar stargateprovider avatar

Stargazers

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