Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate links to GitHub from found clone pairs based on bookkeeping #11

Open
jakubzitny opened this issue Jul 20, 2016 · 0 comments
Open

Comments

@jakubzitny
Copy link

I'd be great to be able to easily re-check a pair of clones from the output directory. Based on bookkeeping we should be able to get file paths of the clones.

Even more awesome would be to generate a link to the files on GitHub based on metadata (like default_branch, namespace, reponame) from dataset (if it's github dataset).

I've written a simple script that works on my sample dataset of top 1000 GitHub JS repos. It's in SourcererCC fomat. I'll generalize it when I have more time: jakubzitny@0111c6a

Sample output from it looks like this:

$ ./githubpair.sh 
https://github.com/jsdoc3/jsdoc/blob/master/plugins/test/specs/commentConvert.js
https://github.com/jsdoc3/jsdoc/blob/master/plugins/test/specs/shout.js
===========
https://github.com/jsdoc3/jsdoc/blob/master/plugins/test/specs/shout.js
https://github.com/jsdoc3/jsdoc/blob/master/plugins/test/specs/escapeHtml.js
===========
https://github.com/thomasdavis/backbonetutorials/blob/gh-pages/examples/modular-backbone/js/text.js
https://github.com/thomasdavis/backbonetutorials/blob/gh-pages/examples/nodejs-mongodb-mongoose-restify/app/js/libs/require/text.js
===========
https://github.com/thomasdavis/backbonetutorials/blob/gh-pages/examples/modular-backbone/js/text.js
https://github.com/thomasdavis/backbonetutorials/blob/gh-pages/examples/cross-domain/js/libs/require/text.js
===========
https://github.com/thomasdavis/backbonetutorials/blob/gh-pages/examples/modular-backbone/js/main.js
https://github.com/thomasdavis/backbonetutorials/blob/gh-pages/examples/nodejs-mongodb-mongoose-restify/app/js/main.js
===========
<...>

Some examples of JS clones: jakubzitny@5d20786735f14f5f73af4a82a6c6c90d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant