<commit_before>const Sequelize = require( 'sequelize' );
const database = require( './database' );

const User = database.define( 'users', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false
    },
    email: {
        type: Sequelize.STRING,
        unique: true,
        allowNull: false
    },
    name: {
        type: Sequelize.STRING,
    },
    password: {
        type: Sequelize.STRING,
        allowNull: false
    },
    avatar: {
        type: Sequelize.STRING,

    }
}, {
    timestamps: true
});


const File = database.define( 'files', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false
    },
    f_name: {
        type: Sequelize.STRING,
    },
    course: {
        type: Sequelize.STRING,
    }, 
    course_num: {
        type: Sequelize.STRING,
    },
    user_id: {
        type: Sequelize.INTEGER,
        foreignKey: true,
        references: {
            model: 'users',
            key: 'id'
        }
    },
    description: {
        type: Sequelize.STRING
    }
}, {
    timestamps: true
});

const Comment = database.define( 'comments', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false
    },
    content: {
        type: Sequelize.STRING,
    },
    file_id: {
        type: Sequelize.INTEGER,
        foreignKey: true,
        references: {
            model: 'files',
            key: 'id'
        }
    },
    name: {
        type: Sequelize.STRING
    }
}, {
    timestamps: true
});

File.belongsTo( User, { foreignKey: 'user_id' } );
Comment.belongsTo( File, { foreignKey: 'file_id' } );
<commit_msg>Blank Lines added<commit_after>const Sequelize = require( 'sequelize' );
const database = require( './database' );

const User = database.define( 'users', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false
    },
    email: {
        type: Sequelize.STRING,
        unique: true,
        allowNull: false
    },
    name: {
        type: Sequelize.STRING,
    },
    password: {
        type: Sequelize.STRING,
        allowNull: false
    },
    avatar: {
        type: Sequelize.STRING,

    }
}, {
    timestamps: true
});


const File = database.define( 'files', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false
    },
    f_name: {
        type: Sequelize.STRING,
    },
    course: {
        type: Sequelize.STRING,
    }, 
    course_num: {
        type: Sequelize.STRING,
    },
    user_id: {
        type: Sequelize.INTEGER,
        foreignKey: true,
        references: {
            model: 'users',
            key: 'id'
        }
    },
    description: {
        type: Sequelize.STRING
    }
}, {
    timestamps: true
});


const Comment = database.define( 'comments', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true,
        allowNull: false
    },
    content: {
        type: Sequelize.STRING,
    },
    file_id: {
        type: Sequelize.INTEGER,
        foreignKey: true,
        references: {
            model: 'files',
            key: 'id'
        }
    },
    name: {
        type: Sequelize.STRING
    }
}, {
    timestamps: true
});


File.belongsTo( User, { foreignKey: 'user_id' } );
Comment.belongsTo( File, { foreignKey: 'file_id' } );

{'fraction_non_alphanumeric': 0.12577903682719546, 'fraction_numerical': 0.0, 'mean_word_length': 1.7099002302379125, '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': '279291', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1145, 'n_words': 236}