<commit_before>modules\blog\model\Article:
  properties:
    title:
      - NotBlank: ~
    code:
      - NotBlank: ~
      - Regex: "/^[a-zA-Z0-9_.]+$/"<commit_msg>add some validation to article form<commit_after>modules\blog\model\Article:
  properties:
    title:
      - NotBlank: ~
      - Length:
          min: 2
          max: 100
          minMessage: "Title can not be less than {{ limit }} characters"
          maxMessage: "Title can not be longer than {{ limit }} characters"
    code:
      - NotBlank: ~
      - Regex:
          pattern: "/^[a-zA-Z0-9_.-]+$/"
          message: "Please provide only alphaberical characters plus [_.-]"
      - Length:
          min: 2
          max: 30
          minMessage: "Code can not be less than {{ limit }} characters"
          maxMessage: "Code can not be longer than {{ limit }} characters"
    created_at:
      - NotBlank: ~
      - DateTime: ~
    updated_at:
      - NotBlank: ~
      - DateTime: ~
    content:
      - NotBlank: ~
    author:
      - NotBlank: ~


{'fraction_non_alphanumeric': 0.1254863813229572, 'fraction_numerical': 0.010700389105058366, 'mean_word_length': 1.7513368983957218, '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': '4534641', 'n_tokens_mistral': 336, 'n_tokens_neox': 319, 'n_words': 84}