<commit_before>"$schema": "https://json-schema.org/draft/2019-09/schema"
"$id": https://raw.githubusercontent.com/NCI-Agency/anet/main/src/main/resources/anet-schema.json

#########################################################
### $defs
#########################################################
$defs:

# base definition for a value with a description
  describedValue:
    type: object
    required: [value,description]
    properties:
      value:
        type: string
      description:
        type: string

# base definition for all Fields. Every field is assumed to have a label
  labeledField:
    type: object
    required: [label]
    properties:
      label:
        type: string
        title: The label for this field
        description: Used in the UI where a label for the field is shown.
      color:
        type: string
        title: The color of the label, optional
        description: Used in the UI where a label for the field is shown.

# definition for fields that allow free-form entry
  inputField:
    unevaluatedProperties: false
    allOf:
    - "$ref": "#/$defs/labeledField"
    - properties:
        placeholder:
          type: string
          title: The placeholder for this field
          description: Used in the UI where a placeholder for the field is shown (example input).
        componentClass:
          type: string
          title: The bootstrap component class
          description: Used to determine how the user interface of this particular field looks.
        maxTextFieldLength:
          type: integer
          minimum: 1
          description: Used in the UI for a text input field's maximum input length.
        style:
          type: object
          title: Optional styling for the bootstrap component class
          description: Used for styling this field.

# definition for fields that present a choice to be selected from
  choiceField:
    unevaluatedProperties: false
    allOf:
    - "$ref": "#/$defs/labeledField"
    - properties:
        enum:
          type: object
          title: The placeholder for this field
          description: Used in the UI where a placeholder for the field is shown (example input).
          additionalProperties:
            "$ref": "#/$defs/labeledField"
      required: [enum]

# definition for custom fields
  customField:
    type: object
    unevaluatedProperties: false
    required: [type]
    properties:
      test:
        type: string<commit_msg>NCI-Agency/anet#2314: Add temporary work-around for dictionary schema validation<commit_after>"$schema": "https://json-schema.org/draft/2019-09/schema"
"$id": https://raw.githubusercontent.com/NCI-Agency/anet/main/src/main/resources/anet-schema.json

#########################################################
### $defs
#########################################################
$defs:

# base definition for a value with a description
  describedValue:
    type: object
    required: [value,description]
    properties:
      value:
        type: string
      description:
        type: string

# base definition for all Fields. Every field is assumed to have a label
  labeledField:
    type: object
    required: [label]
    properties:
      label:
        type: string
        title: The label for this field
        description: Used in the UI where a label for the field is shown.
      color:
        type: string
        title: The color of the label, optional
        description: Used in the UI where a label for the field is shown.

# definition for fields that allow free-form entry
  inputField:
    unevaluatedProperties: false
    allOf:
    - "$ref": "#/$defs/labeledField"
    - properties:
        placeholder:
          type: string
          title: The placeholder for this field
          description: Used in the UI where a placeholder for the field is shown (example input).
        componentClass:
          type: string
          title: The bootstrap component class
          description: Used to determine how the user interface of this particular field looks.
        maxTextFieldLength:
          type: integer
          minimum: 1
          description: Used in the UI for a text input field's maximum input length.
        style:
          type: object
          title: Optional styling for the bootstrap component class
          description: Used for styling this field.

# definition for fields that present a choice to be selected from
  choiceField:
    unevaluatedProperties: false
    allOf:
    - "$ref": "#/$defs/labeledField"
    - properties:
        enum:
          type: object
          title: The placeholder for this field
          description: Used in the UI where a placeholder for the field is shown (example input).
          additionalProperties:
            "$ref": "#/$defs/labeledField"
      required: [enum]

# definition for custom fields
  customField:
    type: object
    unevaluatedProperties: true # FIXME: ugly work-around for customSensitiveInformation
    required: [type]
    properties:
      test:
        type: string
{'fraction_non_alphanumeric': 0.11126509602058998, 'fraction_numerical': 0.0035636507622253018, 'mean_word_length': 2.532867132867133, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '2251597', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1223, 'n_words': 503}