stolzen's blog

By stolzen, history, 11 years ago, In English

I wanted to do some data analysis on source code: I wanted to build a model which determines the language of a source code snippet. Codeforces seemed like a perfect data source for this: each submission has source code and it's tagged with the programming language.

So I scraped the data from codeforces and here I want to share it for people who also might want to have it. I store the following columns:

  • submission_id — the ID of the individual submission
  • source — the source code of the submission
  • status — the verdict of the submission (accepted, not accepted, compilation error, etc)
  • language — the programming language which was used to make the submission
  • problem — the ID of the problem

I scraped about 270k submissions, mostly C/C++.

You can download it here:

It's a MySQL dump, so you'll need MySQL to use it.

You can read more about it here: http://www.itshared.org/2015/12/codeforces-submissions-dataset-for.html

Please let me know if this is against the rules to share such a dataset and I'll remove it.

  • Vote: I like it
  • +16
  • Vote: I do not like it

| Write comment?