mirror of
https://github.com/kanaka/mal.git
synced 2024-08-17 01:30:26 +03:00
graph: update stats, add new implementations.
New implementations: jq, pike, wren, zig, python #2, Swift 5.
This commit is contained in:
parent
236b0a401d
commit
42e55b2947
@ -16,15 +16,17 @@ sudo gem install travis --no-rdoc --no-ri
|
||||
```
|
||||
cd docs/graph
|
||||
|
||||
BUILD=1328
|
||||
BUILD=1490
|
||||
|
||||
for x in $(seq 1 100); do echo ${BUILD}/${x}; mkdir -p logs/${BUILD}; while ! travis logs ${BUILD}.${x} > logs/${BUILD}/${x}; do true; done; done
|
||||
for x in $(seq 1 109); do echo ${BUILD}/${x}; mkdir -p logs/${BUILD}; while ! travis logs ${BUILD}.${x} > logs/${BUILD}/${x}; do true; done; done
|
||||
```
|
||||
|
||||
* Run the [StackOverflow tags query](https://data.stackexchange.com/stackoverflow/query/edit/1013465) and update the CSV link:
|
||||
|
||||
```
|
||||
export SO_TAG_CSV_URL=... # from the query page
|
||||
E.G.
|
||||
export SO_TAG_CSV_URL=https://data.stackexchange.com/stackoverflow/csv/1451851
|
||||
```
|
||||
|
||||
* Remove/clean all generated files:
|
||||
@ -39,5 +41,6 @@ make -C ../.. clean
|
||||
```
|
||||
PATH=$PATH:~/personal/programming/loccount
|
||||
|
||||
npm install
|
||||
time VERBOSE=1 node ./collect_data.js logs/${BUILD}/ all_data.json
|
||||
```
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -37,6 +37,7 @@ languages:
|
||||
- [io , Io , OTHER , Dynamic , []]
|
||||
- [java , Java , C , Static , []]
|
||||
- [js , JavaScript , C , Dynamic , []]
|
||||
- [jq , jq , OTHER , Dynamic , []]
|
||||
- [julia , Julia , Algol , Dynamic , []]
|
||||
- [kotlin , Kotlin , C , Static , []]
|
||||
- [livescript , LiveScript , ML , Dynamic , []]
|
||||
@ -55,11 +56,13 @@ languages:
|
||||
- [perl6 , Perl 6 , C , Dynamic , []]
|
||||
- [php , PHP , C , Dynamic , []]
|
||||
- [picolisp , Picolisp , Lisp , Dynamic , []]
|
||||
- [pike , Pike , C , OTHER , []]
|
||||
- [plpgsql , PL/pgSQL , Algol , Static , []]
|
||||
- [plsql , PL/SQL , Algol , Static , []]
|
||||
- [powershell , PowerShell , OTHER , Dynamic , []]
|
||||
- [ps , PostScript , Stack , Dynamic , []]
|
||||
- [python , Python , Python , Dynamic , [python2,python3]]
|
||||
- [python.2 , 'Python #2' , Python , Dynamic , []]
|
||||
- [rpython , RPython , Python , Static , []]
|
||||
- [r , R , C , Dynamic , []]
|
||||
- [racket , Racket , Lisp , Dynamic , []]
|
||||
@ -72,6 +75,7 @@ languages:
|
||||
- [swift , Swift 2 , C , Static , []]
|
||||
- [swift3 , Swift 3 , C , Static , []]
|
||||
- [swift4 , Swift 4 , C , Static , []]
|
||||
- [swift5 , Swift 5 , C , Static , []]
|
||||
- [tcl , Tcl , OTHER , Dynamic , []]
|
||||
- [ts , TypeScript , C , Static , []]
|
||||
- [vala , Vala , C , Static , []]
|
||||
@ -79,4 +83,6 @@ languages:
|
||||
- [vimscript , Vimscript , Algol , Dynamic , []]
|
||||
- [vb , Visual Basic.NET , Algol , Static , []]
|
||||
- [wasm , WebAssembly , Lisp , Static , [wace_libc,node,warpy]]
|
||||
- [wren , Wren , C , Dynamic , []]
|
||||
- [yorick , Yorick , C , Dynamic , []]
|
||||
- [zig , Zig , C , Static , []]
|
||||
|
@ -39,9 +39,10 @@ const githutToNames = {
|
||||
'Objective-C': ['Objective C'],
|
||||
'PLpgSQL': ['PL/pgSQL'],
|
||||
'PLSQL': ['PL/SQL'],
|
||||
'Python': ['Python', 'Python #2'],
|
||||
'Scheme': ['Scheme (R7RS)'],
|
||||
'Smalltalk': ['GNU Smalltalk'],
|
||||
'Swift': ['Swift 2', 'Swift 3', 'Swift 4'],
|
||||
'Swift': ['Swift 2', 'Swift 3', 'Swift 4', 'Swift 5'],
|
||||
'Vim script': ['Vimscript'],
|
||||
'Visual Basic': ['Visual Basic.NET'],
|
||||
}
|
||||
@ -61,9 +62,11 @@ const dirToSOTags = {
|
||||
'objpascal': ['delphi', 'freepascal', 'delphi-7', 'delphi-2007', 'delphi-2009', 'delphi-2010', 'delphi-xe', 'delphi-xe2', 'delphi-xe3', 'delphi-xe4', 'delphi-xe5', 'delphi-xe7'],
|
||||
'objc': ['objective-c'],
|
||||
'python': ['python', 'python-3.x', 'python-2.7'],
|
||||
'python.2': ['python', 'python-3.x', 'python-2.7'],
|
||||
'swift': ['swift2'],
|
||||
'swift3': ['swift3'],
|
||||
'swift4': ['swift', 'swift4'],
|
||||
'swift4': ['swift4'],
|
||||
'swift5': ['swift', 'swift4', 'swift5'],
|
||||
'ts': ['typescript', 'typescript-generics', 'typescript2.0'],
|
||||
'vimscript': ['viml'],
|
||||
'vb': ['vb.net'],
|
||||
@ -159,8 +162,7 @@ async function main() {
|
||||
|
||||
|
||||
function githutProcess(textData, kind) {
|
||||
const gMap = textData.split(/\n/)
|
||||
.map(JSON.parse)
|
||||
const gMap = JSON.parse(textData)
|
||||
.reduce((m, d) => (m[d.name] = parseInt(d.count) + (m[d.name] || 0), m), {})
|
||||
const gdata = Object.entries(gMap)
|
||||
.sort(([k1,v1],[k2,v2]) => v2 - v1)
|
||||
|
Loading…
Reference in New Issue
Block a user