GithubHelp home page GithubHelp logo

osll / code-plagiarism Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 1.0 776 KB

Program for finding plagiarism in the source code written on Python3, C, C++ based on compare AST metadata.

License: MIT License

C++ 1.21% Python 90.80% Makefile 4.21% templ 3.78%
python plagiarism-detection code-similarity plagiarism-checker education

code-plagiarism's Issues

Схожая проблема с кодеками, которая была в GitHubParser может возникать и для режима проверки локально.

~/.local/lib/python3.8/site-packages/codeplag/pyplag/utils.py in get_ast_from_filename(filename)
     59     try:
     60         with open(filename) as f:
---> 61             tree = get_ast_from_content(f.read(), filename)
     62     except PermissionError:
     63         print("File denied.")

/usr/lib/python3.8/codecs.py in decode(self, input, final)
    320         # decode input (taking the buffer into account)
    321         data = self.buffer + input
--> 322         (result, consumed) = self._buffer_decode(data, self.errors, final)
    323         # keep undecoded input until the next call
    324         self.buffer = data[consumed:]

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 12: invalid continuation byte

Добавить возможность передавать разные аргументы в cplag, кроме как по умолчанию.

Возможно будет необходимость корректировать --std=c++11 на более свежие версии языка, либо добавлять дополнительные параметры, для поддержки сторонних библиотек.

args = '-x c++ --std=c++11'.split()

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.