<commit_before>import { MaxLength, IsOptional } from 'class-validator'
import { Serializable } from 'models/serializable'

export class ValidationErrors {
  static readonly YOUR_REFERENCE_TOO_LONG: string = 'Enter a reference no longer than $constraint1 characters'
}

export class YourReference implements Serializable<YourReference> {

  @MaxLength(25, { message: ValidationErrors.YOUR_REFERENCE_TOO_LONG })
  @IsOptional()
  yourReference?: string

  constructor (yourReference?: string) {
    this.yourReference = yourReference
  }

  static fromObject (value?: any): YourReference {
    if (value == null) {
      return value
    }

    const instance = new YourReference(value.yourReference)

    return instance
  }

  deserialize (input?: any): YourReference {
    if (input) {
      this.yourReference = input.yourReference
    }
    return this
  }
}
<commit_msg>updated validation message<commit_after>import { MaxLength, IsOptional } from 'class-validator'
import { Serializable } from 'models/serializable'

export class ValidationErrors {
  static readonly YOUR_REFERENCE_TOO_LONG: string = 'You’ve entered too many characters'
}

export class YourReference implements Serializable<YourReference> {

  @MaxLength(25, { message: ValidationErrors.YOUR_REFERENCE_TOO_LONG })
  @IsOptional()
  yourReference?: string

  constructor (yourReference?: string) {
    this.yourReference = yourReference
  }

  static fromObject (value?: any): YourReference {
    if (value == null) {
      return value
    }

    const instance = new YourReference(value.yourReference)

    return instance
  }

  deserialize (input?: any): YourReference {
    if (input) {
      this.yourReference = input.yourReference
    }
    return this
  }
}

{'fraction_non_alphanumeric': 0.0885566417481311, 'fraction_numerical': 0.002875215641173088, 'mean_word_length': 4.117647058823529, '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': '3006076', 'n_tokens_mistral': 500, 'n_tokens_neox': 481, 'n_words': 131}