Skip to content

A tool which finds similarity between code snippets on stack overflow and github repositories and recommends possible matches based on moss code similarity metric

Notifications You must be signed in to change notification settings

prateek1404/SnippetMatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Readme

This package has dependency on the BeautifulSoup python libarary which to parse HTML. use the command 'sudo python setup.py install' from the main directory to install the dependency. This package also has dependency on the moss.pl file. MOSS is a code similarity matching tool. Use moss.pl from http://theory.stanford.edu/~aiken/moss/ and place it in the main directory.

To execute the script for a particular snippet, follow the following instructions

  1. Make 1 entry per snippet in the main/Snippets/snippetSourceInfo.txt file

Entry format is

":::"

For example:- 1:csharp:Snippets/csharp/Q1Right.cs:int double TimeSpan DateTime UtcNow Math Abs Floor Ticks TotalSeconds Seconds Minutes Hours Days Convert ToInt32

  1. Run the file driver.py

  2. The results for the script will be stored in the _ folder in the _results.txt file.

About

A tool which finds similarity between code snippets on stack overflow and github repositories and recommends possible matches based on moss code similarity metric

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published