<commit_before>const fs = require('fs');
const path = require('path');
const TimeUtil = require('../util/TimeUtil.js');
const Sequelize = require('Sequelize');
const Op = Sequelize.Op;

module.exports = class CalendarSequelize {
    constructor(sequelizeClient) {
        this.sequelize = sequelizeClient;
    }

    async init() {
        const sequelize = this.sequelize;
        const dbSync = [];

        fs
            .readdirSync(path.join(__dirname, 'models'))
            .forEach(file => {
                var model = sequelize.import(path.join(__dirname, 'models', file));
                this[model.name] = model;
                dbSync.push(model.sync());
            });

        return await Promise.all(dbSync);
    }

    async createEvent(content, tag, guild, startTime) {
        return await this.Event.create({
            content: content,
            tag: tag,<commit_msg>fix typo<commit_after>const fs = require('fs');
const path = require('path');
const TimeUtil = require('../util/TimeUtil.js');
const Sequelize = require('sequelize');
const Op = Sequelize.Op;

module.exports = class CalendarSequelize {
    constructor(sequelizeClient) {
        this.sequelize = sequelizeClient;
    }

    async init() {
        const sequelize = this.sequelize;
        const dbSync = [];

        fs
            .readdirSync(path.join(__dirname, 'models'))
            .forEach(file => {
                var model = sequelize.import(path.join(__dirname, 'models', file));
                this[model.name] = model;
                dbSync.push(model.sync());
            });

        return await Promise.all(dbSync);
    }

    async createEvent(content, tag, guild, startTime) {
        return await this.Event.create({
            content: content,
            tag: tag,
{'fraction_non_alphanumeric': 0.12870733072188026, 'fraction_numerical': 0.0, 'mean_word_length': 2.2274368231046933, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3202634', 'n_tokens_mistral': 521, 'n_tokens_neox': 496, 'n_words': 110}