https://github.com/songgao/alikesubmissions
https://github.com/songgao/alikesubmissions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/songgao/alikesubmissions
- Owner: songgao
- Created: 2013-03-13T02:30:03.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-13T13:59:48.000Z (about 12 years ago)
- Last Synced: 2025-01-02T02:41:59.505Z (5 months ago)
- Language: JavaScript
- Homepage: http://songgao.github.com/AlikeSubmissions
- Size: 109 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AlikeSubmissions
Check out a demo page [here](http://songgao.github.com/AlikeSubmissions) (Names are masked).
I'm a TA for MATLAB class taken by about 400 students. I used these scripts to analize students' submissions to their Lab assignments and find out alike ones.
## Usage
Use `find_alike.sh` to find out submissions in the current directory that are alike from each other. The one in this repo looks at MATLAB scripts and only prints those with more than 50% same lines. Modify it if you are working on other languages or looking at submissions in sub-directories.
```bash
# cd to the directory containing all submissions
$ /path/to/find_alike.sh | tee alike_ones.json
```Copy alike_ones.json to the same directory.
Mask names if you like
```bash
$ cat alike_ones.json | mask_names.py | tee alike_ones_masked.json
```Open up a local server and see the result from `localhost:8080` in a modern browser.
```bash
$ python -m SimpleHTTPServer 8080
```