Skip to content

Plagiarism detection for source code

License

Notifications You must be signed in to change notification settings

BojanStipic/resava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resava

Plagiarism detection for source code.

CI

Plagiarism detection

Plagiarism is detected using the following steps:

  1. Input preprocessing:
    • Whitespace normalization
    • Letter case normalization
    • Language dependent preprocessing. Currently supported languages:
      • x86 GAS assembly
      • C programming language
  2. Similarity check using string metric algorithm. Currently supported algorithms:

Installation options

Download precompiled binaries

Precompiled binaries are available on Releases page. Currently only x86_64-unknown-linux-gnu targets are supported.

Compiling from source

Prerequisites

Compile and install with Cargo:

cargo build --release
cargo install --path .

Usage

Usage: resava [OPTIONS] <SOURCE> [TARGETS]...

Arguments:
  <SOURCE>
          Source file to check for plagiarism

  [TARGETS]...
          Targets to compare against the source file. If a target is a directory, it is searched recursively

          [default: ./]

Options:
  -s, --similarity <SIMILARITY>
          Only show files with specified similarity percentage

          [default: 80]

  -p, --preprocessor <PREPROCESSOR>
          File preprocessor to use

          [default: asm]

          Possible values:
          - asm:  x86 GAS assembly
          - c:    C programming language
          - text: Basic text preprocessing
          - none: Disable preprocessing

  -h, --help
          Print help information (use `-h` for a summary)

  -V, --version
          Print version information

License

Copyright (C) 2020-2023 Bojan Stipic

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.