I asked this question on Stackoverflow and was directed to ask it here. The question is:

I wanted to ask about plagiarism detection tools for source code written in C++. When I searched Google the ones I found compare between documents that you already have. What I'm looking for is a tool that compares against content on the internet (i.e Github).

  • I think it is unlikely to be of use except for the most blatant and poorly done plagiarism. After all, I can copy code, paste in my IDE, Edit -> Refactor -> Change variable names and get brand new code in no time.
    – Davidmh
    Commented Feb 16, 2015 at 20:20
  • 17
    @Davidmh: Surprising as it is, students keep trying to conduct such "most blatant and poorly done plagiarism". Commented Feb 16, 2015 at 21:05
  • 1
    While this isn't a real answer, what I use is Google. Take the code snippet and throw it into Google search. You'll quickly find if there are any exact copies. it doesn't easily find those that have been refactored but it does find those really lazy cheaters. Commented Feb 23, 2015 at 19:30
  • 2
    @O.R.Mapper They do indeed. There was an incident where someone copied handwritten homework word for word from another classmate. They even copied their classmate's name at the top of the paper. Then they both handed it in in class, one submission on top of the other (as if the TA never marks work sequentially). Stupid is as stupid does. If an intelligent plagiarizer substantially improves or obfuscates the code that they plagiarized, they probably actually managed to understand the program and you'll have a hard time proving they plagiarized.
    – Moriarty
    Commented Feb 24, 2015 at 10:51
  • 4
    @Davidmh: Modern plagiarism tools (such as Moss) are not fooled by changing variable names. Commented Feb 24, 2015 at 11:57

3 Answers 3


We use the MOSS (Measure of Software Similarity) system provided by Stanford, at here.

  • 2
    I am unable to register for MOSS and download and use it, I also have not got any reply of the email I sent them.
    – user45113
    Commented Nov 27, 2015 at 18:37
  • 4
    I think MOSS just compares between the corpus that you submit, not against code in the web. I'm not aware of anything that indexes code on the web for comparison in this way.
    – Rikki
    Commented Dec 9, 2016 at 1:25
  • 1
    @FarazAhmad, are you sure the email you sent is correct? I just used it and got a response within a minute. Commented Dec 6, 2017 at 14:06

Haven't used it, but I found this:



There are many general sites such as:


Sure, they will flag everything that "has to be copied" such as int main but everything that "has to be copied" should be common between your students. It should then be fairly easy to not take it into account using a simple script removing anything shared by more than 80% of your students, preferably before submitting it to the plagiarism checker.

It would probably be easier using a website with an API such as: https://api.plagscan.com/guide

  • This doesn't answer the question, the OP was looking for a plagiarism detector for source code, not free-form text.
    – eykanal
    Commented Feb 23, 2015 at 19:27
  • 5
    It is actually terribly bad for source code. It finds all the things that have to be copied, like int main and \"%s\"\n"
    – Davidmh
    Commented Feb 23, 2015 at 21:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .