Skip to content

Analysis of the Appearence Frequency of Reserved Words in Programming Languages

Notifications You must be signed in to change notification settings

hakatashi/frequency-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analysis of the Appearence of Reserved Words in Programming Languages

Sources

C#: Open XML SDK
C++: MySQL 5.5.37
Erlang: OTP 17.1.2
Java: Apache Common Lang 3.3.2
JavaScript: jQuery 2.1.1, MooTools 1.5.0, Prototype.js 1.7.2.0
Haskell: pandoc 1.12.4.2
Objective-C: AFNetworking 2.3.1
Perl: mojo 5.26
PHP: CakePHP 2.5.3
Python: Django
Ruby: Ruby on Rails
Scala: gitbucket 2.2.1
Visual Basic: HiJackThis 2.0.4

Results

JavaScript

word count
return 1986
this 1908
function 1892
if 1867
var 1335
else 287
for 274
new 180
in 177
while 161

Java

word count
final 2998
return 2048
if 1540
public 1297
int 1096
static 1054
new 579
boolean 508
this 392
else 312

Ruby

word count
end 1000
def 532
if 209
self 155
do 148
module 89
class 85
nil 71
else 70
unless 62

Python

word count
if 1071
def 961
in 788
for 658
return 614
from 496
import 496
not 412
is 355
and 327

PHP

word count
if 1099
public 776
return 658
function 391
isset 256
empty 242
class 176
extends 168
protected 168
default 162

C++

word count
if 5738
return 1720
char 1329
int 1315
else 1167
const 1124
bool 961
case 732
static 638
void 564

Objective-C

word count
if 350
return 325
void 316
else 75
const 70
static 58
int 46
case 45
long 43
typedef 30

C#

word count
this 1486
if 867
return 828
null 742
public 582
string 538
new 530
internal 344
throw 283
override 235

Visual Basic

word count
If 2537
Then 1600
End 1308
As 1164
Long 586
Sub 581
Case 445
Error 441
ByVal 432
Exit 430

Erlang

word count
end 2028
when 1389
of 1147
case 1108
fun 547
receive 408
catch 173
after 153
try 66
if 63

Haskell

word count
let 871
do 643
import 555
else 502
if 500
then 489
of 296
case 277
where 193
in 117

Scala

word count
val 641
def 535
import 510
case 414
if 339
new 234
with 218
implicit 175
else 175
private 163

Perl

word count
my 1007
sub 637
return 555
if 399
@_ 395
shift 389
$_ 247
unless 221
eq 210
use 169

About

Analysis of the Appearence Frequency of Reserved Words in Programming Languages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published