<commit_before>import { Model } from 'sequelize';

import restoreSequelizeAttributesOnClass from '../lib/restore-sequelize-attributes-on-class';

/**
 * Sequelize model to represent an ExpenseAttachedFile, linked to the `ExpenseAttachedFiles` table.
 */
export class CurrencyExchangeRate extends Model<CurrencyExchangeRate> {
  public readonly id!: number;
  public rate!: number;
  public from!: string;
  public to!: string;
  public createdAt!: Date;

  constructor(...args) {
    super(...args);
    restoreSequelizeAttributesOnClass(new.target, this);
  }
}

export default (sequelize, DataTypes): typeof CurrencyExchangeRate => {
  // Link the model to database fields
  CurrencyExchangeRate.init(
    {
      id: {<commit_msg>fix: typo in the comment<commit_after>import { Model } from 'sequelize';

import restoreSequelizeAttributesOnClass from '../lib/restore-sequelize-attributes-on-class';

/**
 * Sequelize model to represent an CurrencyExchangeRate, linked to the `CurrencyExchangeRates` table.
 */
export class CurrencyExchangeRate extends Model<CurrencyExchangeRate> {
  public readonly id!: number;
  public rate!: number;
  public from!: string;
  public to!: string;
  public createdAt!: Date;

  constructor(...args) {
    super(...args);
    restoreSequelizeAttributesOnClass(new.target, this);
  }
}

export default (sequelize, DataTypes): typeof CurrencyExchangeRate => {
  // Link the model to database fields
  CurrencyExchangeRate.init(
    {
      id: {
{'fraction_non_alphanumeric': 0.10885733603786342, 'fraction_numerical': 0.0, 'mean_word_length': 4.4212454212454215, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1441838', 'n_tokens_mistral': 445, 'n_tokens_neox': 435, 'n_words': 120}