<commit_before>import functions { ... }
import check { results }

shared void test() {
    helloWorld();
    helloWorld{};
    hello("world");
    hello { name="world"; };
    helloAll("someone", "someone else");
    helloAll { names="someone"; names="someone else";};
    String s1 = toString(99);
    String s2 = toString { obj=99; };    
    Float f1 = add(1.0, -1.0);
    Float f2 = add { x=1.0; y=-1.0; };
    void p(Integer i) {
        print(i);
    }
    repeat(10,p);
    testNamedArguments();
    testQualified();
    results();
}<commit_msg>More invocation tests for #155<commit_after>import functions { ... }
import check { check, results }

String mixseqs({Character...} chars, Integer... nums) => "C:" (chars.first else "?") " #" (nums[0] else "?")"";

shared void test() {
    helloWorld();
    helloWorld{};
    hello("world");
    hello { name="world"; };
    helloAll("someone", "someone else");
    helloAll { names="someone"; names="someone else";};
    String s1 = toString(99);
    String s2 = toString { obj=99; };    
    Float f1 = add(1.0, -1.0);
    Float f2 = add { x=1.0; y=-1.0; };
    void p(Integer i) {
        print(i);
    }
    repeat(10,p);
    testNamedArguments();
    testQualified();
    check(mixseqs([`a`,`b`],1,2,3)=="C:a #1");
    check(mixseqs({`b`,`c`},2,3,4)=="C:b #2");
    check(mixseqs(["hola"...],3,4,5)=="C:h #3");
    check(mixseqs{for (c in "hola") c.uppercased}=="C:H #?");
    check(mixseqs{nums=2;chars="hola";nums=1;}=="C:h #2");
    check(mixseqs{nums=4; for (c in "hola") c}=="C:h #4");
    check(mixseqs{"hola"...}=="C:h #?");
    check(mixseqs{`H`,`I`}=="C:H #?");
    results();
}
{'fraction_non_alphanumeric': 0.2354014598540146, 'fraction_numerical': 0.03467153284671533, 'mean_word_length': 3.207161125319693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '970097', 'n_tokens_mistral': 671, 'n_tokens_neox': 635, 'n_words': 125}