<commit_before>/**
 * Contain the online (rather inline) help of the ooc compiler
 */
Help: class {

    /**
     * Print a helpful help message that helps
     */
    printHelp: static func {

        println("Usage: rock [options] files\n")
       println(
"The default rock options are:
rock yourmodule.ooc -backend=c -driver=sequence -gc=static -libcache -outpath=rock_tmp/ -o=yourmodule

If you give it no .ooc file, rock will attempt to find a .use file, and
compile it either as a program (if it has a 'Main: yourapp.ooc' directive)
or a library (if it only has a 'SourcePath: something' directive)

--allerrors
    Attempt to display all compilation errors instead of stopping after
    the first one. The reason this is optional is because the output of
    allerrors is sometimes not so helpful. You might want to pipe it to less :)

--backend=[c]
    Choose the rock backend. Currently, only the default backend c is
    supported.

-c
    Don't link.

--cc=[/path/to/ccompiler/binary]
    point to the C compilers executable

--driver=[combine,sequence,make,dummy]
    Choose the compile driver to use. combine compiles all C files
    combined, sequence compiles them sequentially, make creates a
    Makefile. dummy only generates the .c sources to rock_tmp/ (or whatever
    you set your -outpath to)

-Dmydefine
    sets \"mydefine\" for version blocks

--editor=EDITOR
    The editor to run when an error in a ooc file was encountered.

--entrypoint=FUNC
    Use FUNC as entrypoint. (default=main)

-pg
    Use the 'debug profile' - compile with debug information and no optimization.<commit_msg>Yay help<commit_after>/**
 * Contain the online (rather inline) help of the ooc compiler
 */
Help: class {

    /**
     * Print a helpful help message that helps
     */
    printHelp: static func {

        println("Usage: rock [options] files\n")
       println(
"The default rock options are:
rock yourmodule.ooc -backend=c -driver=sequence -gc=static -libcache -outpath=rock_tmp/ -o=yourmodule

If you give it no .ooc file, rock will attempt to find a .use file, and
compile it either as a program (if it has a 'Main: yourapp.ooc' directive)
or a library (if it only has a 'SourcePath: something' directive)

--allerrors
    Attempt to display all compilation errors instead of stopping after
    the first one. The reason this is optional is because the output of
    allerrors is sometimes not so helpful. You might want to pipe it to less :)

--backend=[c,json,luaffi]
    Choose the rock backend. By default, the 'c' backend is used. 'json'
    generates a JSON representation of the AST, and 'luaffi' generate .lua
    boilerplate to help using ooc module from Lua with ooc-lua.

-c
    Don't link.

--cc=[/path/to/ccompiler/binary]
    point to the C compilers executable

--driver=[combine,sequence,make,dummy]
    Choose the compile driver to use. combine compiles all C files
    combined, sequence compiles them sequentially, make creates a
    Makefile. dummy only generates the .c sources to rock_tmp/ (or whatever
    you set your -outpath to)

-Dmydefine
    sets \"mydefine\" for version blocks

--editor=EDITOR
    The editor to run when an error in a ooc file was encountered.

--entrypoint=FUNC
    Use FUNC as entrypoint. (default=main)

-pg
    Use the 'debug profile' - compile with debug information and no optimization.
{'fraction_non_alphanumeric': 0.07738095238095238, 'fraction_numerical': 0.0, 'mean_word_length': 3.2329974811083124, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3841286', 'n_tokens_mistral': 969, 'n_tokens_neox': 949, 'n_words': 453}