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

Make real code commits instead of random string #10

Open
avinassh opened this issue Jul 18, 2015 · 14 comments
Open

Make real code commits instead of random string #10

avinassh opened this issue Jul 18, 2015 · 14 comments

Comments

@avinassh
Copy link
Owner

Currently the code commits random strings in code file and in commit message (uuid.uuid1). Instead it should write some real code and commit it with an intelligent commit message.

here's how I am thinking to implement: find some popular libraries (with MIT License), maintain a directory of those snippets and copy the code from it with commit message.

Idea originally suggested by Laurentvw on HN.

@cscorley
Copy link

Better yet, generate code with an RNN: https://karpathy.github.io/2015/05/21/rnn-effectiveness/

@avinassh
Copy link
Owner Author

I have no idea how RNN works (not cs rockstar yet :/)

Let me know if someone wants to take this task.

@avinassh
Copy link
Owner Author

@ybur-yug will be implementing this.

@ybur-yug
Copy link

I think a neural network is a bit of overengineering something thats such a simple toy application @cscorley. I'll be working on a keep-things-simple solution today or tomorrow (depends when I have a the time).

@jaredly
Copy link

jaredly commented Jul 20, 2015

What if you just grab code snippets from stackoverflow?

@areyohrahul
Copy link
Contributor

@avinassh Whai if we could grab code snippets from different websites on run time and then commit them. That would be much cooler like a rockstar no?

@avinassh
Copy link
Owner Author

@rahulxxarora there will be licensing issues. but it would be really really cool actually.

@jaredly cool idea! 😎 However we need to make sure we are following the CC License correctly 0, 1

@jaredly
Copy link

jaredly commented Jul 20, 2015

Looks like the code snippets are fine to use under "fair use": http://meta.stackexchange.com/questions/25956/what-is-up-with-the-source-code-license-on-stack-overflow/25957#25957

That said, a snippet of code falls under excerpt category and thus should be free to use under fair use.

  • Jeff Atwood

@avinassh
Copy link
Owner Author

Guys any update?

@theodesp
Copy link

RNN, AI, snippets, that's too much work for a rockstar.

@WeileiZeng
Copy link

https://isotropic.org/papers/chicken.pdf

How about this?

@ParikhKadam
Copy link

@avinassh @cscorley @ybur-yug I am aware of how DL models work, especially RNN. If you are working on this task, let me know. I can help.

BTW, this repo is some awesome shit I found on git. Great Job!!

@ParikhKadam
Copy link

What we are looking at it something called code generation using DL. Have a look here - https://ml4code.github.io/base-taxonomy/generative.html

I have previously worked on RNNs for language encoding and QA systems. Let me know the details and we will plan accordingly.

@ParikhKadam
Copy link

Also, if you don't want to use DL, we can generate random senseless code with a simple copy-pasting logic with language specific simple parsing. Any votes on this?

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

No branches or pull requests

8 participants