<commit_before>{
  "id": "https://raw.githubusercontent.com/MailOnline/tap-github-issues/master/schemas/test_case.json#",
  "$schema": "http://json-schema.org/draft-06/schema#",
  "description": "schema for test case. Failing this schema will cause skipping the test case",
  "type": "object",
  "required": ["ok", "id", "name", "diag"],
  "properties": {
    "ok": {
      "description": "test result",
      "type": "boolean"
    },
    "id": {
      "description": "test sequential number",
      "type": "integer",
      "minLength": 1
    },
    "name": {
      "description": "test name, should be unique accross all tests",
      "type": "string",
      "minLength": 1
    },
    "diag": {
      "description": "test diagnostics, includes all information necessary to manage the issue",
      "type": "object",
      "required": ["repo", "rule"],
      "properties": {
        "repo": {
          "description": "full repository name, including organisation",
          "type\"": "string",
          "pattern": "^(?:[A-Za-z0-9]+[-]?)+[A-Za-z0-9]\\/[A-Za-z0-9_-]+$"
        },
        "rule": {
          "description": "rule name",
          "type": "string",
          "pattern": "^[A-Za-z](?:[A-Za-z0-9]+[-]?)+[A-Za-z0-9]$"
        },
        "issue": {"$ref": "#/definitions/issue"}
      }
    }
  },
  "definitions": {
    "issue": {
      "description": "GitHub issue title and action comments (optional). Title and comments will be based on rule name in case this property is absent.",
      "type": "object",
      "required": ["title"],
      "properties": {
        "title": {"type": "string"},
        "comments": {
          "type": "object",
          "minProperties": 1,
          "properties": {
            "create": {"type": "string"},
            "update": {"type": "string"},
            "close": {"type": "string"},
            "reopen": {"type": "string"}
          }
        }
      }
    }
  }
}
<commit_msg>fix: update test JSON Schema<commit_after>{
  "id": "https://raw.githubusercontent.com/MailOnline/tap-github-issues/master/schemas/test_case.json#",
  "$schema": "http://json-schema.org/draft-06/schema#",
  "description": "schema for test case. Failing this schema will cause skipping the test case",
  "type": "object",
  "required": ["ok", "id", "name", "diag"],
  "properties": {
    "ok": {
      "description": "test result",
      "type": "boolean"
    },
    "id": {
      "description": "test sequential number",
      "type": "integer",
      "minLength": 1
    },
    "name": {
      "description": "test name, should be unique accross all tests",
      "type": "string",
      "minLength": 1
    },
    "diag": {
      "description": "test diagnostics, includes all information necessary to manage the issue",
      "type": "object",
      "required": ["repo", "rule"],
      "properties": {
        "message": {
          "description": "not used in GitHub issues",
          "type": "string"
        },
        "messages": {
          "description": "these messages will be used as GitHub issue comments",
          "type": "array",
          "items": {"type": "string"}
        },
        "severity": {
          "description": "severity can be used as GitHub issue label",
          "type": "string"
        },
        "repo": {
          "description": "full repository name, including organisation",
          "type\"": "string",
          "pattern": "^(?:[A-Za-z0-9]+[-]?)+[A-Za-z0-9]\\/[A-Za-z0-9_-]+$"
        },
        "rule": {
          "description": "rule name",
          "type": "string",
          "pattern": "^[A-Za-z](?:[A-Za-z0-9]+[-]?)+[A-Za-z0-9]$"
        },
        "issue": {"$ref": "#/definitions/issue"}
      }
    }
  },
  "definitions": {
    "issue": {
      "description": "GitHub issue title and action comments (optional). Title and comments will be based on rule name in case this property is absent.",
      "type": "object",
      "required": ["title"],
      "properties": {
        "title": {"type": "string"},
        "comments": {
          "type": "object",
          "minProperties": 1,
          "properties": {
            "create": {"type": "string"},
            "update": {"type": "string"},
            "close": {"type": "string"},
            "reopen": {"type": "string"}
          }
        }
      }
    }
  }
}

{'fraction_non_alphanumeric': 0.2023643949930459, 'fraction_numerical': 0.006954102920723227, 'mean_word_length': 2.158857979502196, 'pattern_counts': {'":': 115, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6153151', 'n_tokens_mistral': 1365, 'n_tokens_neox': 1320, 'n_words': 335}