<commit_before>{
  "type": "object",
  "required": ["categories"],
  "additionalProperties": false,
  "properties": {
    "categories": {
      "type": "array",
      "items": [
        {
          "anyOf": [
            {
              "type": "object",
              "required": ["color", "title"],
              "additionalProperties": false,
              "properties": {
                "color": { "type": "string", "pattern": "^#(?:[0-9a-f]{3}){1,2}$" },
                "title": { "type": "string" }
              }
            },
            {
              "type": "object",
              "required": ["color", "icon"],
              "additionalProperties": false,
              "properties": {
                "color": { "type": "string", "pattern": "^#(?:[0-9a-f]{3}){1,2}$" },
                "icon": { "type": "string" }
              }
            }
          ]
        }
      ]
    }
  }
}<commit_msg>improve custom def<commit_after>{
  "type": "object",
  "required": [
    "categories"
  ],
  "additionalProperties": false,
  "properties": {
    "categories": {
      "type": "array",
      "required": [
        "title"
      ],
      "additionalProperties": false,
      "items": {
        "type": "object",
        "required": [
          "title"
        ],
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "color": {
            "type": "string",
            "pattern": "^#(?:[0-9a-f]{3}){1,2}$"
          },
          "icon": {
            "type": "string"
          }
        }
      }
    }
  }
}
{'fraction_non_alphanumeric': 0.20335820895522388, 'fraction_numerical': 0.009328358208955223, 'mean_word_length': 1.3251445086705202, 'pattern_counts': {'":': 46, '<': 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': '222050', 'n_tokens_mistral': 494, 'n_tokens_neox': 477, 'n_words': 81}