Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
35
Task/Function-frequency/J/function-frequency.j
Normal file
35
Task/Function-frequency/J/function-frequency.j
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
IGNORE=: ;:'y(0)1',CR
|
||||
|
||||
Filter=: (#~`)(`:6)
|
||||
|
||||
NB. extract tokens from a large body newline terminated of text
|
||||
roughparse=: ;@(<@;: ::(''"_);._2)
|
||||
|
||||
NB. count frequencies and get the top x
|
||||
top=: top=: {. \:~@:((#;{.)/.~)
|
||||
|
||||
NB. read all installed script (.ijs) files and concatenate them
|
||||
JSOURCE=: ;fread each 1&e.@('.ijs'&E.)@>Filter {."1 dirtree jpath '~install'
|
||||
|
||||
10 top (roughparse JSOURCE)-.IGNORE
|
||||
┌─────┬──┐
|
||||
│49591│, │
|
||||
├─────┼──┤
|
||||
│40473│=:│
|
||||
├─────┼──┤
|
||||
│35593│; │
|
||||
├─────┼──┤
|
||||
│34096│=.│
|
||||
├─────┼──┤
|
||||
│24757│+ │
|
||||
├─────┼──┤
|
||||
│18726│" │
|
||||
├─────┼──┤
|
||||
│18564│< │
|
||||
├─────┼──┤
|
||||
│18446│/ │
|
||||
├─────┼──┤
|
||||
│16984│> │
|
||||
├─────┼──┤
|
||||
│14655│@ │
|
||||
└─────┴──┘
|
||||
Loading…
Add table
Add a link
Reference in a new issue