<commit_before>import { MuWriteStream, MuReadStream } from '../stream';
import { MuSchema } from './schema';

export class MuDate implements MuSchema<Date> {
    public readonly muType = 'date';
    public readonly identity:Date;
    public readonly json;
    public pool:Date[] = [];

    constructor (identity?:Date) {
        this.identity = new Date();
        if (identity) {
            this.identity.setTime(identity.getTime());
        }
        this.json = {
            type: 'date',
            identity: this.identity.toISOString(),
        };
    }

    public alloc () : Date {
        return this.pool.pop() || new Date();<commit_msg>Update date.ts<commit_after>import { MuWriteStream, MuReadStream } from '../stream';
import { MuSchema } from './schema';

export class MuDate implements MuSchema<Date> {
    public readonly muType = 'date';
    public readonly identity:Date;
    public readonly json;
    public pool:Date[] = [];

    constructor (identity?:Date) {
        this.identity = new Date(0);
        if (identity) {
            this.identity.setTime(identity.getTime());
        }
        this.json = {
            type: 'date',
            identity: this.identity.toISOString(),
        };
    }

    public alloc () : Date {
        return this.pool.pop() || new Date();
{'fraction_non_alphanumeric': 0.1346153846153846, 'fraction_numerical': 0.0007692307692307692, 'mean_word_length': 2.3273657289002556, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '307025', 'n_tokens_mistral': 356, 'n_tokens_neox': 351, 'n_words': 92}