Where can I find a data set with large set of relatively small (<500 LOC) computer programs. Programs should be consistent in language used. can be written in any one language (Javascript preferable).

I do not want large project code bases. Aim is to find small independent programs.

1 Answer 1


Have you tried Github.com? There are millions of lines of code from different programs of varying lengths. Github also has an API.

  • I tried that some time back. But according to API what I can get is large set of .js files from project repositories. But it gets hard to sort out dependencies and to extract independent files out of it. Any ideas ?
    – Zack
    Aug 16, 2017 at 13:45
  • 1
    Code contests would be an option, but for javascript there may be not so many options compared to python. See here for more details opendata.stackexchange.com/a/1868/1511
    – philshem
    Aug 18, 2017 at 11:13
  • @Zack, probably Github Gists are slightly more suitable. Sep 14, 2017 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.