<commit_before>export enum doorStatus {
    closed,
    open,
    selected,
    answer,
    selectedAnswer,
    selectedOpen
}

export class Game {
    public id: string
    private answer: number
    private doors: doorStatus[]
    public selected: number
    public switched: boolean
    public result: boolean

    constructor() {
        this.id = this.generateId();
        this.answer = this.getRandom(0, 2);
        this.doors = [doorStatus.closed, doorStatus.closed, doorStatus.closed];
        this.switched = false;
    }

    public toJson(): string {
        return JSON.stringify({
            doors: this.doors,
            selected: this.selected,
            result: this.result<commit_msg>Add static support to create new game<commit_after>export enum doorStatus {
    closed,
    open,
    selected,
    answer,
    selectedAnswer,
    selectedOpen
}

export class Game {
    public id: string
    private answer: number
    private doors: doorStatus[]
    public selected: number
    public switched: boolean
    public result: boolean

    public static new(): Game {
        return new this();
    }

    constructor() {
        this.id = this.generateId();
        this.answer = this.getRandom(0, 2);
        this.doors = [doorStatus.closed, doorStatus.closed, doorStatus.closed];
        this.switched = false;
    }

    public toJson(): string {
        return JSON.stringify({
            doors: this.doors,
            selected: this.selected,
            result: this.result
{'fraction_non_alphanumeric': 0.09054593874833555, 'fraction_numerical': 0.002663115845539281, 'mean_word_length': 2.2603036876355747, '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': '1411204', 'n_tokens_mistral': 407, 'n_tokens_neox': 397, 'n_words': 118}