<commit_before>struct Person {
	constructor(public name: string, public age: number) {}
}
var john = new Person("John", 25); // correct
var george = new Person(25, "George"); // wrong, sequence matters. comply with class syntax
var jg = new Person("John", "George", 25); // wrong parameter number

var john1 = new Person({name: "John", age: 25}); // right sequence
var george1 = new Person({age: 25, name: "George"}); // wrong, sequence matters. comply with class syntax
var george1 = {age:25, name: "George"}; // wrong
<commit_msg>nominal typing test<commit_after>struct Person {
	constructor(public name: string, public age: number) {}
}
var john = new Person("John", 25); // ok
var george = new Person(25, "George"); // error, sequence matters. comply with class syntax
var jg = new Person("John", "George", 25); // error, parameter number. comply with class syntax

var john1 = new Person({name: "John", age: 25}); // error, cannot initialize this way. comply with class syntax
var george1 = new Person({age: 25, name: "George"}); // error. comply with class syntax
var george1 = {age:25, name: "George"}; // error, nominal typing, not structural typing.

{'fraction_non_alphanumeric': 0.14840379637618636, 'fraction_numerical': 0.025884383088869714, 'mean_word_length': 4.523809523809524, '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': '3145717', 'n_tokens_mistral': 363, 'n_tokens_neox': 329, 'n_words': 145}