Initial framework commit
This commit is contained in:
commit
72d218235f
14 changed files with 2403 additions and 0 deletions
88
ReadMe.md
Normal file
88
ReadMe.md
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
RosettaCode Data Project
|
||||
========================
|
||||
|
||||
This git repository contains (almost) all of the code samples available on
|
||||
http://rosettacode.org organized by Language and Task.
|
||||
|
||||
|
||||
## Getting the Data
|
||||
|
||||
All of the data is in this repository, so you can just run:
|
||||
|
||||
git clone https://github.com/acmeism/RosettaCodeData
|
||||
|
||||
*However...*
|
||||
|
||||
It's a lot of data!
|
||||
|
||||
If you just want the latest data, the quickest thing to do is:
|
||||
|
||||
git clone https://github.com/acmeism/RosettaCodeData --single-branch --depth=1
|
||||
|
||||
|
||||
## Tools
|
||||
|
||||
This repository's data content is created by a Perl program called
|
||||
`rosettacode`.
|
||||
|
||||
You can install it with this command:
|
||||
|
||||
cpanm RosettaCode
|
||||
|
||||
You can rebuild the data with:
|
||||
|
||||
make build
|
||||
|
||||
|
||||
This repository has a `bin` directory with various tools for working with the
|
||||
data.
|
||||
|
||||
* `rcd-api-list-all-langs`
|
||||
|
||||
List all the programming language names directly from rosettacode.org
|
||||
|
||||
* `rcd-api-list-all-tasks`
|
||||
|
||||
List all the programming task names directly from rosettacode.org
|
||||
|
||||
* `rcd-new-langs`
|
||||
|
||||
List the RosettaCode languages not yet add to Conf
|
||||
|
||||
* `rcd-new-tasks`
|
||||
|
||||
List the RosettaCode tasks not yet add to Conf
|
||||
|
||||
* `rcd-samples-per-lang`
|
||||
|
||||
Show the number of code samples per language
|
||||
|
||||
* `rcd-samples-per-task`
|
||||
|
||||
Show the number of code samples per task
|
||||
|
||||
* `rcd-tasks-per-lang`
|
||||
|
||||
Show the number of tasks with code samples per language
|
||||
|
||||
* `rcd-langs-per-task`
|
||||
|
||||
Show the number of languages with code samples per task
|
||||
|
||||
|
||||
## To Do
|
||||
|
||||
Pull requests welcome!
|
||||
|
||||
This project is not a perfect representation of RosettaCode yet.
|
||||
It has a few uncicode issues.
|
||||
It also has to deal with various formatting mistakes in the mediawiki source
|
||||
pages.
|
||||
|
||||
* Fix bugs
|
||||
|
||||
* Support names with non-ascii characters
|
||||
|
||||
* Add more bin tools
|
||||
|
||||
* Address errors reported in rosettacode.log after running `make build`
|
||||
Loading…
Add table
Add a link
Reference in a new issue