Here is a quick test on the collects dir (program attached if you want to improve it).<br>A number of files are not parsed because of various glitches (#reader lines in particular).<br><br>Below is the dict of the first 500 identifiers with the number of occurrences, sorted by this number times the string-length of the identifier.<br>
<br>Actually, it doesn't look that bad IMO.<br><br>Laurent, who should have worked instead...<br><br>'((define . 47453)<br> (quote . 48703)<br> (lambda . 22377)<br> (send . 21027)<br> (syntax . 13956)<br> (let . 21909)<br>
(... . 18877)<br> (list . 13315)<br> (unquote . 6398)<br> (x . 43546)<br> (define/public . 3189)<br> (quasiquote . 3689)<br> (loop . 8958)<br> (if . 17508)<br> (set! . 8569)<br> (make-object . 3104)<br> (unless . 5432)<br>
(require . 4582)<br> (stx . 10494)<br> (else . 7808)<br> (name . 7663)<br> (and . 10187)<br> (cons . 7529)<br> (raise-syntax-error . 1631)<br> (values . 4865)<br> (cond . 7077)<br> (define-syntax . 2149)<br> (when . 6942)<br>
(car . 8956)<br> (provide . 3745)<br> (syntax->list . 2124)<br> (syntax-case . 2257)<br> (let-values . 2462)<br> (define/override . 1517)<br> (unsyntax . 2757)<br> (o . 20379)<br> (format . 3377)<br> (define-values . 1553)<br>
(define-struct . 1548)<br> (null? . 3961)<br> (cdr . 6557)<br> (quasisyntax . 1752)<br> (string-append . 1456)<br> (raise-type-error . 1176)<br> (begin . 3621)<br> (-> . 8915)<br> (define/private . 1261)<br>
(with-syntax . 1603)<br>
(parameterize . 1416)<br> (check-equal? . 1408)<br> (identifier? . 1527)<br> (string-constant . 1115)<br> (syntax-e . 2082)<br> (error . 3274)<br> (not . 5409)<br> (parent . 2662)<br> (map . 5280)<br> (vector-ref . 1575)<br>
(let* . 3791)<br> (start . 2987)<br> (string? . 2120)<br> (unquote-splicing . 906)<br> (eq? . 4740)<br> (null . 3550)<br> (void . 3513)<br> (apply . 2727)<br> (exact-nonnegative-integer? . 516)<br> (append . 2182)<br>
(length . 2104)<br> (test-case . 1401)<br> (define-syntax-rule . 688)<br> (for-each . 1463)<br> (equal? . 1857)<br> (test . 2775)<br> (define-enum . 1003)<br> (make-parameter . 787)<br> (quote-syntax . 918)<br>
(in-list . 1562)<br>
(with-handlers . 811)<br> (v . 10374)<br> (expr . 2584)<br> (vector . 1707)<br> (pair? . 2024)<br> (label . 1997)<br> (body . 2485)<br> (args . 2481)<br> (id . 4899)<br> (list-ref . 1218)<br> (build-path . 972)<br>
(or . 4801)<br> (p . 9589)<br> (string->symbol . 675)<br> (+ . 9441)<br> (i . 9390)<br> (generate-temporaries . 465)<br> (datum->syntax . 715)<br> (printf . 1527)<br> (s . 9138)<br> (dc . 4555)<br> (a . 8852)<br>
(string-length . 675)<br> (syntax/loc . 873)<br> (symbol->string . 621)<br> (symbol? . 1228)<br> (expression . 859)<br> (c . 8442)<br> (unsyntax-splicing . 496)<br> (color . 1665)<br> (define-for-syntax . 478)<br>
(provide/contract . 499)<br> (listof . 1326)<br> (reverse . 1136)<br> (style . 1571)<br> (new . 2618)<br> (port . 1953)<br> (hash-ref . 974)<br> (module . 1292)<br> (syntax-rules . 644)<br> (number? . 1104)<br>
(match . 1543)<br> (real? . 1539)<br> (zero? . 1538)<br> (rest . 1922)<br> (cadr . 1919)<br> (for-syntax . 764)<br> (pos . 2534)<br> (regexp-match . 633)<br> (height . 1255)<br> (snip . 1880)<br> (super-new . 834)<br>
(val . 2493)<br> (case-lambda . 679)<br> (result . 1240)<br> (y . 7388)<br> (struct . 1230)<br> (racket/base . 657)<br> (path . 1778)<br> (term . 1776)<br> (current-error-port . 393)<br> (l . 7049)<br> (e . 7021)<br>
(n . 6991)<br> (quasisyntax/loc . 464)<br> (solid . 1391)<br> (boolean? . 868)<br> (hash-set! . 768)<br> (pattern . 977)<br> (for/list . 847)<br> (inexact->exact . 480)<br> (procedure? . 672)<br> (f . 6699)<br>
(stretchable-height . 370)<br> (free-identifier=? . 388)<br> (λ . 6592)<br> (b . 6524)<br> (str . 2172)<br> (width . 1293)<br> (line . 1613)<br> (filename . 805)<br> (def/public . 643)<br> (add1 . 1607)<br> (syntax->datum . 486)<br>
(or/c . 1568)<br> (display . 875)<br> (vector-length . 471)<br> (tex-def-prim . 509)<br> (all-from-out . 493)<br> (_ . 5915)<br> (unbox . 1180)<br> (text . 1472)<br> (current-output-port . 307)<br> (number . 968)<br>
(test-expression . 387)<br> (vector-set! . 526)<br> (type . 1432)<br> (number->string . 409)<br> (t . 5713)<br> (value . 1141)<br> (current-continuation-marks . 219)<br> (procedure-arity-includes? . 227)<br> (empty . 1122)<br>
(last-position . 427)<br> (racket/class . 462)<br> (- . 5534)<br> (string->number . 395)<br> (case . 1364)<br> (_pointer . 670)<br> (len . 1782)<br> (path->string . 442)<br> (syntax-property . 353)<br> (inherit . 753)<br>
(eof-object? . 478)<br> (begin-edit-sequence . 274)<br> (class . 1038)<br> (Integer . 737)<br> (prefix . 857)<br> (end . 1703)<br> (stretchable-width . 298)<br> (proc . 1266)<br> (callback . 630)<br> (side-condition . 354)<br>
(default-color . 380)<br> (expected . 615)<br> (in-range . 615)<br> (any/c . 980)<br> (match-define . 407)<br> (memq . 1220)<br> (current-directory . 287)<br> (arithmetic-shift . 304)<br> (string=? . 602)<br> (obj . 1603)<br>
(rectangle . 533)<br> (end-edit-sequence . 282)<br> (=> . 2393)<br> (out . 1588)<br> (file-exists? . 394)<br> (in-hole . 672)<br> (mzscheme . 587)<br> (this . 1172)<br> (: . 4680)<br> (set-box! . 582)<br> (current-namespace . 272)<br>
(base . 1153)<br> (sub1 . 1149)<br> (andmap . 765)<br> (syntax? . 654)<br> (bytes-length . 381)<br> (* . 4561)<br> (test-suite . 454)<br> (key . 1513)<br> (char->integer . 349)<br> (file . 1122)<br> (preferences:get . 297)<br>
(var . 1484)<br> (check . 890)<br> (r . 4447)<br> (horizontal-panel% . 261)<br> (call-with-values . 277)<br> (w . 4406)<br> (make-bindings . 338)<br> (set-brush . 485)<br> (string . 718)<br> (= . 4303)<br> (stepper-syntax-property . 187)<br>
(expect . 716)<br> (syntax-parse . 357)<br> (exact->inexact . 305)<br> (exact-integer? . 304)<br> (dynamic-require . 283)<br> (all-defined-out . 282)<br> (positive? . 470)<br> (list? . 836)<br> (bytes-ref . 463)<br>
(count . 833)<br> (for . 1387)<br> (bytes->string/utf-8 . 217)<br> (board . 823)<br> (substring . 457)<br> (h . 4096)<br> (filter . 682)<br> (rational? . 450)<br> (first . 803)<br> (insert . 669)<br> (is-a? . 802)<br>
(define-syntax-class . 211)<br> (frame . 801)<br> (make-test-mtch . 285)<br> (arg . 1329)<br> (struct-out . 395)<br> (default . 564)<br> (d . 3932)<br> (size . 979)<br> (syntax-local-value . 217)<br> (-filter . 553)<br>
(path-string? . 322)<br> (mode . 960)<br> (bindings . 479)<br> (rename-out . 382)<br> (raise-mismatch-error . 191)<br> (define-metafunction . 201)<br> (system-type . 346)<br> (_void . 755)<br> (define/augment . 269)<br>
(define-syntaxes . 251)<br> (content . 537)<br> (defmagick* . 375)<br> (string->bytes/utf-8 . 197)<br> (racket/contract . 249)<br> (Number . 622)<br> (datum->syntax-object . 186)<br> (right . 742)<br> (editor . 617)<br>
(_fun . 925)<br> (check-true . 368)<br> (check-expect . 306)<br> (integer? . 458)<br> (super . 731)<br> (exn-message . 332)<br> (define-signature . 228)<br> (with-continuation-mark . 165)<br> (#%plain-app . 328)<br>
(define-runtime-path . 189)<br> (event . 712)<br> (table . 710)<br> (current-eventspace . 197)<br> (find-or-create-brush . 176)<br> (close-output-port . 207)<br> (make-element . 292)<br> (vector->list . 292)<br>
(emit . 875)<br> (in . 1744)<br> (who . 1162)<br> (m . 3481)<br> (set-pen . 497)<br> (bitwise-and . 314)<br> (preferences:set-default . 150)<br> (left . 862)<br> (box . 1149)<br> (draw-rectangle . 244)<br> (get-editor . 340)<br>
(rename . 565)<br> (racket/match . 282)<br> (exact-positive-integer? . 147)<br> (make-bind . 375)<br> (instantiate . 306)<br> (test-empty . 336)<br> (make-vector . 305)<br> (canvas . 559)<br> (make-hash . 369)<br>
(exp . 1099)<br> (string-ref . 329)<br> (viewport . 409)<br> (dynamic-wind . 271)<br> (settings . 406)<br> (next . 812)<br> (init-field . 323)<br> (ormap . 641)<br> (test-equal? . 290)<br> (make-bytes . 319)<br>
(open-input-string . 186)<br> (transparent . 287)<br> (msg . 1051)<br> (fprintf . 448)<br> (index . 625)<br> (_double* . 390)<br> (names . 622)<br> (prefix-in . 343)<br> (max . 1029)<br> (regexp-match-positions . 140)<br>
(current-input-port . 171)<br> (directory-exists? . 180)<br> (exn:fail? . 340)<br> (item . 764)<br> (_int . 762)<br> (is-a?/c . 435)<br> (get-value . 338)<br> (make-hasheq . 276)<br> (char=? . 506)<br> (hash-table-put! . 202)<br>
(regexp-match? . 233)<br> (env . 1001)<br> (find-or-create-pen . 166)<br> (Listof . 496)<br> (check-arg . 330)<br> (any . 986)<br> (drracket:language-configuration:language-settings-language . 51)<br> (vertical-panel% . 196)<br>
(scheme/base . 267)<br> (exn . 963)<br> (button% . 412)<br> (clause . 480)<br> (fields . 476)<br> (interactions-text . 167)<br> (racket/runtime-path . 149)<br> (message . 403)<br> (form . 705)<br> (thunk . 564)<br>
(letrec . 469)<br> (caddr . 561)<br> (get-width . 310)<br> (false . 558)<br> (color% . 465)<br> (get-text-extent . 185)<br> (offset . 462)<br> (identifier . 277)<br> (list* . 553)<br> (racket/list . 251)<br> (semaphore-post . 197)<br>
(newline . 394)<br> (ctc . 918)<br> (k . 2754)<br> (hilite . 458)<br> (pred . 687)<br> (style-delta% . 229)<br> (#%module-begin . 195)<br> (for/fold . 341)<br> (x-min . 541)<br> (current-custodian . 159)<br> (_GtkWidget . 270)<br>
(get-height . 270)<br> (show . 674)<br> (blank . 539)<br> (stx-car . 385)<br> (mzlib/class . 245)<br> (get-top-level-window . 134)<br> (src . 891)<br> (lst . 888)<br> (center . 444)<br> (define-gtk . 266)<br> (x-max . 529)<br>
(bytes-append . 220)<br> (code . 659)<br> (make-posn . 292)<br> (Univ . 657)<br> (title . 525)<br> (depth . 525)<br> (col . 871)<br> (String . 435)<br> (get-client-size . 174)<br> (only-in . 372)<br> (current-inexact-milliseconds . 93)<br>
(tex-def-math-prim . 153)<br> (_MagickWand . 236)<br> (bytes? . 431)<br> (def/override . 215)<br> (vars . 642)<br> (start-pos . 285)<br> (begin0 . 426)<br> (preferences:set . 170)<br> (regexp-replace* . 170)<br>
(current-command-line-arguments . 85)<br> (queue-callback . 182)<br> (dir . 845)<br> (red . 844)<br> (field . 506)<br> (lang . 631)<br> (regexp-replace . 180)<br> (bitmap% . 359)<br> (definitions-text . 157)<br>
(the-color-database . 139)<br> (recur . 500)<br> (with-output-to-file . 131)<br> (file-position . 191)<br> (clauses . 354)<br> (info . 619)<br> (data . 616)<br> (let*-values . 224)<br> (member . 410)<br> (saved-env . 273)<br>
(state . 491)<br> (import . 409)<br> (hash-table-get . 175)<br> (blame . 490)<br> (make-semaphore . 175)<br> (value-of . 305)<br> (quotient . 302)<br> (cases . 477)<br> (syntax-position . 159)<br> (vector? . 340)<br>
(tag . 793)<br> (/ . 2369)<br> (get-selection . 182)<br> (input . 473)<br> (change-style . 197)<br> (define-type-alias . 139)<br> (-String . 337)<br> (current-load-relative-directory . 76)<br> (close-input-port . 147)<br>
(floor . 470)<br> (before-after . 195)<br> (dy . 1166)<br> (Circle . 388)<br> (num . 774)<br> (contract-projection . 122)<br> (status . 386)<br> (get-start-position . 128)<br> (bitwise-ior . 209)<br> (delta . 459)<br>
(negative? . 255)<br> (get-actual-char . 152)<br> (bottom . 379)<br> (method . 377)<br> (split-path . 226)<br> (flush-output . 188)<br> (<= . 1124)<br> (source . 374)<br> (match-lambda . 187)<br> (super-instantiate . 132)<br>
(draw-line . 249)<br> (dx . 1113)<br> (expval-extractor-error . 101)<br> (racket/contract/base . 111)<br> (list->vector . 185)<br> (defproc . 317)<br> (define: . 317)<br> (teach-syntax-error . 123)<br> (collection-path . 147)<br>
(head . 551)<br> (orig-stx . 275)<br> (export . 364))<br>