Word frequency count FIXED

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Calculate the frequency with which each word appears in the sample input. Punctuation marks should be deleted, and all words should be written in lowercase, for the sake of comparison; the output should be in sorted order. (Sorry, there was a bug I didn't notice in my test program that I used to generate the output first time round.)

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

News
    * updated goruby's version using revision 15046.
    * released caddy, a helper tool for golfers. You can test your solution, squeeze (remove comments or unnecessary whitespaces) your code, and submit the solution with this tool. Please unpack the package and check README for details. (I fixed a bug of database. Please re-download the package again if your caddy doesn't work correctly)
    * updated goruby using this version. The most significant change might be the faster method_missing, which is provided by eban and flagitious. Thanks for the great contribution!
    * added "name grep" to language summary page. This patch is provided by flagitious. Also, fixed binary escape for \x1a-\x1f, suggested by Pla. Thanks two guys!
    * updated golfscript using new version and ruby1.9.
    * added language summary page. You can access the page from language ranking. These information will be updated every 10 minutes. Uploaded the newest source code of this server.
    * added goruby, which is a kind of joke program but is *officially* bundled in ruby-1.9.0-0 package (you can create the binary by "make golf"). I think there are two features: 1. Kernel#h method, which outputs Hello, world! 2. short method names: you can call Kernel#print using "pr". This feature is implemented by method_missing.
    * added Vim as a language. You should make the buffer match the expected output given by each problem. The buffer is initialized using the standard input of the problem. For example, "ddZZ" can be the 4B solution of "delete first line" challenge.
    * added GolfScript, a stack oriented esoteric language developped by flagitious. I'm pretty sure this language can be the #1 language of this site. Though the first purpose of this language might be golfing, its computation model is interesting, too. Thanks flagitious for this nice work!
    * added Z80 as a language. Please check out the description of the environment made by mokehehe. Thanks mokehehe for suggesting and providing the environment!
    * according to flagitious's suggestion, I relaxed timeout policy: you have 1 sec for 3 test cases problems, 1.5 secs for 2 test cases, and 3 secs for 1 test case.
    * deploy new exec filter into all problems. It makes program ~10 times faster. Please tell me if you find some bugs.
    * thanks all guys for submissions for tesing problem! I fixed A+'s suffix problem according to the suggestion.
    * the ICFP contest is coming soon (July 20th)! I introduce this contest in this site because I think you golfers will enjoy this contest (especially, the contest in the last year contains many golfing challenges!). Join and enjoy the contests (but don't defeat me :)
    * add Whirl.
    * update version of DMD to 1.015 and fix VHDL's exec denied problem.
    * add Pefunge.
    * my email address was changed.
    * add deadline feature. Authors of problems can select the deadline. After the deadline, the problem state becomes to "post-mortem" and all submitted source codes are opened. If you want to create closed problem, you can select no deadline option.
    * add Postscript.
    * add xgawk, m4, and update GHC to 6.6 from 6.4.
    * expire all entries which use file save. I know this bug as mentioned the below, but i have not fixed yet. Please kindly don't submit entries using file save/load.
    * changed the timeout of Java to 1.5sec (because its stratup is slow). 

Sample output:

6 a
1 access
2 according
5 add
6 added
1 address
1 after
1 again
4 all
1 also
10 and
2 are
4 as
1 authors
1 b
5 be
2 because
1 becomes
1 below
2 binary
2 buffer
2 bug
1 bugs
1 bundled
3 but
8 by
2 caddy
1 call
8 can
1 case
2 cases
1 challenge
1 challenges
1 change
2 changed
2 check
1 closed
2 code
1 codes
1 coming
1 comments
1 computation
1 contains
4 contest
1 contests
1 contribution
1 correctly
2 create
1 database
1 ddzz
4 deadline
1 defeat
1 delete
1 denied
1 deploy
1 description
1 details
1 developped
1 dmd
1 doesnt
2 dont
1 each
1 eban
1 email
2 enjoy
2 entries
2 environment
1 escape
1 esoteric
1 especially
1 every
1 example
2 exec
1 expected
1 expire
2 faster
2 feature
1 features
2 file
1 filter
1 find
2 first
1 fix
4 fixed
4 flagitious
1 flagitiouss
12 for
2 from
1 ghc
1 given
1 golf
2 golfers
2 golfing
2 golfscript
2 goruby
1 gorubys
1 great
1 grep
2 guys
2 have
1 hello
1 helper
8 i
1 icfp
3 if
1 im
1 implemented
3 in
1 information
1 initialized
1 input
1 interesting
1 into
1 introduce
9 is
1 it
2 its
1 java
1 join
1 joke
1 july
1 kernelh
1 kernelprint
1 kind
1 kindly
1 know
9 language
1 last
1 line
1 m
1 made
2 make
1 makes
1 many
1 match
2 me
1 mentioned
2 method
2 methodmissing
2 might
1 minutes
1 model
2 mokehehe
1 most
1 my
1 name
1 names
2 new
1 newest
1 news
1 nice
1 no
1 not
11 of
1 officially
1 opened
1 option
1 or
1 oriented
1 out
1 output
1 outputs
3 package
3 page
1 patch
1 pefunge
1 pla
5 please
1 policy
1 postmortem
1 postscript
1 pr
1 pretty
7 problem
3 problems
2 program
2 provided
1 providing
1 purpose
1 ranking
1 readme
1 redownload
1 relaxed
1 released
1 remove
1 revision
2 ruby
1 save
1 saveload
2 sec
2 secs
2 select
1 server
1 short
1 should
1 significant
2 site
1 slow
3 solution
1 some
1 soon
2 source
1 squeeze
1 stack
1 standard
1 state
1 stratup
1 submissions
2 submit
1 submitted
1 suffix
1 suggested
1 suggesting
2 suggestion
2 summary
1 sure
1 tell
1 tesing
4 test
1 th
5 thanks
30 the
1 there
1 these
2 think
13 this
1 though
2 timeout
1 times
8 to
1 too
2 tool
2 two
1 unnecessary
1 unpack
2 update
4 updated
1 uploaded
1 use
6 using
4 version
1 vhdls
1 vim
1 want
1 was
4 which
1 whirl
1 whitespaces
2 will
1 with
2 work
1 world
1 xaxf
1 xgawk
1 year
1 yet
10 you
3 your
1 z

Sample input:_

This test is much shorter; this line is just a test.

Sample output:

1 a
2 is
1 just
1 line
1 much
1 shorter
2 test
2 this

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1ksk840.74592008/02/27 00:34:320B / 43B / 38B
2niha850.43932008/02/16 16:07:320B / 48B / 34B
3eban860.47522008/02/28 01:17:010B / 49B / 34B
4leonid950.06972008/02/14 16:39:270B / 47B / 44B
5xdigit1130.15452008/02/20 19:07:520B / 57B / 53B
6shinh1160.21932008/02/28 00:10:080B / 55B / 57B
7tabasa1490.55972008/02/14 10:56:211B / ?B / ?B
8murky-satyr780.22532008/09/11 15:46:270B / 41B / 35B
9eban790.17052008/06/16 12:53:360B / 41B / 36B
10polo790.05092020/04/20 19:48:280B / ?B / ?B
11leonid830.73472008/02/28 11:35:270B / 41B / 40B

Perl _

RankUserSizeTimeDateStatistics
1ySas660.05612008/02/15 10:24:520B / 26B / 37B
2Mithran700.04562008/02/15 21:54:460B / 28B / 38B
3Defenestrator730.02462008/02/21 10:42:290B / 37B / 31B
4ais523740.04452008/02/14 03:56:500B / ?B / ?B
5ivanw900.06502008/02/19 12:54:420B / ?B / ?B
6tails (ySas)620.12462016/12/01 09:42:460B / 23B / 36B

Python _

RankUserSizeTimeDateStatistics
1kt3k1250.15962008/02/28 01:38:250B / 78B / 38B
2zetamatta1450.12272008/02/23 09:55:120B / 85B / 43B
3Defenestrator1480.67622008/02/15 09:49:253B / 88B / 45B
4gnibbler1100.01472010/03/05 09:30:090B / 68B / 35B
5recursive1240.05382008/10/14 12:26:410B / 71B / 43B
6_1580.05322019/06/04 08:05:470B / ?B / ?B

PHP _

RankUserSizeTimeDateStatistics
1daira1340.30922008/02/27 18:29:560B / 79B / 50B

Scheme _

RankUserSizeTimeDateStatistics
1murky-satyr1830.39772008/08/15 19:00:080B / 132B / 43B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima2350.30612008/02/27 18:55:230B / 161B / 65B
2kozima2240.52932008/07/14 14:46:120B / 153B / 63B

Arc _

RankUserSizeTimeDateStatistics
1murky-satyr1083.82622010/04/30 20:58:420B / 60B / 41B

Io _

RankUserSizeTimeDateStatistics
1pooq1653.02922008/02/28 02:47:580B / 124B / 31B
2murky-satyr2113.10792008/02/17 00:25:520B / 149B / 44B
3pooq1403.04212008/03/07 10:43:110B / 110B / 19B
4murky-satyr1422.94982008/03/07 03:39:170B / 103B / 28B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr1800.30882008/02/17 00:10:550B / 86B / 88B
2murky-satyr1380.10212008/07/03 17:24:420B / 72B / 62B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1770.04612008/06/02 11:30:350B / 95B / 64B

Tcl _

RankUserSizeTimeDateStatistics
1murky-satyr1860.14492008/07/10 09:17:030B / 101B / 49B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr1520.32032008/02/15 04:39:190B / 100B / 43B
2murky-satyr1460.39142008/04/11 02:58:400B / 106B / 31B

BASIC _

RankUserSizeTimeDateStatistics
1yt3161.48522008/02/19 17:50:310B / 170B / 130B

J _

RankUserSizeTimeDateStatistics
1pooq810.16052008/02/28 03:18:380B / 25B / 55B
2I., S.560.07712012/03/11 00:16:440B / 22B / 33B

C _

RankUserSizeTimeDateStatistics
1hinoe1940.31312008/02/24 23:24:4912B / 92B / 89B
251b1980.02732008/02/27 23:26:560B / 110B / 87B

D _

RankUserSizeTimeDateStatistics
151b1680.02572008/02/23 04:45:410B / 105B / 56B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1330.03462008/02/22 22:00:410B / ?B / ?B
2konn1430.02752008/02/28 00:53:120B / ?B / ?B
3Defenestrator1300.04772008/02/28 13:58:590B / 84B / 36B

AWK _

RankUserSizeTimeDateStatistics
1nn1450.11432008/07/03 18:52:030B / 64B / 79B

Bash _

RankUserSizeTimeDateStatistics
1eban610.12832008/02/14 13:24:550B / 30B / 23B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1llhuii(tails)850.49152019/06/12 22:21:590B / 28B / 46B
2tails880.50362019/06/06 07:42:090B / 28B / 47B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)1570.61432008/02/16 02:59:5862B / 58B / 33B
2yshl2300.70762008/02/16 02:59:450B / 156B / 44B

R _

RankUserSizeTimeDateStatistics
1pooq930.33482012/10/27 16:23:460B / 49B / 43B
2murky-satyr952.69912008/04/15 23:33:480B / 51B / 43B

GolfScript _

RankUserSizeTimeDateStatistics
1polo680.13932020/04/21 18:34:480B / ?B / ?B

gs2 _

RankUserSizeTimeDateStatistics
1whio160.21682017/02/08 07:20:075B / 6B / 4B

Vim _

RankUserSizeTimeDateStatistics
1udioica410.09812016/11/30 20:54:052B / ?B / ?B
2udioica (utility)430.08742016/11/30 16:28:082B / ?B / ?B
3nn800.59002010/10/14 23:20:404B / 36B / 33B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr540.09252009/12/22 15:34:060B / 19B / 31B
2leonid550.26732008/12/15 21:13:440B / 20B / 32B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr1147.38842008/02/19 00:09:130B / 73B / 35B
2murky-satyr1062.52262009/12/16 08:28:160B / 67B / 35B
3hoozie1827.67812008/02/29 16:49:380B / 101B / 77B

Scala _

RankUserSizeTimeDateStatistics
1murky-satyr12915.85072011/07/14 09:39:130B / 87B / 37B

Language Ranking_

RankLangUserSizeScore
1gs2whio1610000
2Vimudioica413902
3gorubymurky-satyr542962
4JI., S.562857
5Basheban612622
6Perltails (ySas)622580
7GolfScriptpolo682352
8Rubymurky-satyr782051
9Bash (builtins)llhuii(tails)851882
10Rpooq931720
11Groovymurky-satyr1061509
12Arcmurky-satyr1081481
13Pythongnibbler1101454
14Scalamurky-satyr1291240
15HaskellDefenestrator1301230
16PHPdaira1341194
17JavaScriptmurky-satyr1381159
18Iopooq1401142
19AWKnn1451103
20Smalltalkmurky-satyr1461095
21Postscriptyshl(bin)1571019
22D51b168952
23Luamurky-satyr177903
24Schememurky-satyr183874
25Tclmurky-satyr186860
26Chinoe194824
27Common LISPkozima224714
28BASICyt316506

return to the top page