<commit_before>const ts = require("./ts");

var newType = ts.type("newType", {a: ts.types.Number, b: ts.types.Number});

var foo = ts.def({a: ts.types.String, b: ts.types.Number, c: ts.types.Any},
    ({a, b, c}, d, e) => {
        return a + b + c + d + e;
    });

var lazyFoo = ts.lazyDef({a: ts.types.String, b: ts.types.Number},
  	({a, b}, c) => {
        return a + b + c;
    });

var bar = ts.def({a: ts.types.newType},
    ({a}) => {
        return a.a + a.b;
    });

var baz = ts.def({a: newType},
    ({a, b}) => {
        return a.a + a.b;
    });

var lazyBaz = ts.lazyDef({a: newType},
    ({a}) => {
        return a.a + a.b;
    });

console.log(foo({a: "foo", b: 3, c: 1}, 4, 6));
console.log(lazyFoo("foo", 3, 4));
console.log(bar({a: {a: 1, b: 2}}));
console.log(baz({a: {a: 2, b: 2}}));
console.log(lazyBaz({a: 2, b: 2}));<commit_msg>changed git protocol<commit_after>const ts = require("./ts");

var newType = ts.type("newType", {a: ts.types.Number, b: ts.types.Number});

var foo = ts.def({a: ts.types.String, b: ts.types.Number, c: ts.types.Any},
    ({a, b, c}, d, e) => {
        return a + b + c + d + e;
    });

var lazyFoo = ts.lazyDef({a: ts.types.String, b: ts.types.Number},
  	({a, b}, c) => {
        return a + b + c;
    });

var bar = ts.def({a: ts.types.newType},
    ({a}) => {
        return a.a + a.b;
    });

var baz = ts.def({a: newType},
    ({a, b}) => {
        return a.a + a.b;
    });

var lazyBaz = ts.lazyDef({a: newType},
    ({a}) => {
        return a.a + a.b;
    });

console.log(foo({a: "foo", b: 3, c: "1"}, 4, 6));
console.log(lazyFoo("foo", 3, 4));
console.log(bar({a: {a: 1, b: 2}}));
console.log(baz({a: {a: 2, b: 2}}));
console.log(lazyBaz({a: 2, b: 2}));
{'fraction_non_alphanumeric': 0.26147588611272515, 'fraction_numerical': 0.013945380592678676, 'mean_word_length': 2.521472392638037, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '689499', 'n_tokens_mistral': 783, 'n_tokens_neox': 753, 'n_words': 185}