<commit_before>{
  "schema": {
    "name": "mdJson",
    "version": "2.0.0"
  },
  "contact": [
    {
      "contactId": "CID001",
      "isOrganization": false,
      "name": "address - all keys with singe array elements"
    }
  ],
  "metadata": {
    "metadataInfo": {
      "metadataIdentifier": {
        "identifier": "identifier"
      },
      "metadataContact": [
        {
          "role": "role",
          "party": [
            {
              "contactId": "CID001"
            }
          ]
        }
      ]
    },
    "resourceInfo": {
      "resourceType": "resourceType",
      "citation": {
        "title": "title"
      },
      "abstract": "abstract",
      "pointOfContact": [
        {
          "role": "role",
          "party": [
            {
              "contactId": "CID001"
            }
          ]
        }
      ],
      "defaultResourceLocale": {
        "language": "LanguageCode",
        "country": "CountryCode",
        "characterSet": "MD_CharacterSetCode"
      },
      "constraint": [
        {
          "type": "use",
          "useLimitation": [
            "useLimitation0",
            "useLimitation1"
          ]
        },
        {
          "type": "legal",
          "legalConstraint": {
            "useConstraint": [
              "useConstraint0",
              "useConstraint1"
            ],
            "accessConstraint": [
              "accessConstraint0",
              "accessConstraint1"
            ],
            "otherConstraint": [
              "otherConstraint0",
              "otherConstraint1"
            ]
          }
        },
        {
          "type": "legal",
          "legalConstraint": {
            "useConstraint": [
              "useConstraint0"
            ],
            "accessConstraint": [],
            "otherConstraint": []
          }
        },
        {
          "type": "legal",
          "legalConstraint": {
            "useConstraint": [
              "useConstraint0"
            ]
          }
        },
        {
          "type": "legal",
          "legalConstraint": {
            "otherConstraint": [
              "otherConstraint0"
            ]
          }
        },
        {
          "type": "security",
          "securityConstraint": {
            "classification": "classification",
            "classificationSystem": "classificationSystem",
            "userNote": "userNote",
            "handlingDescription": "handlingDescription"
          }
        }
      ]
    }
  }
}<commit_msg>Refactor ISO 19115-2 writer test for 'legalConstraint' with final mdJson schema changes.<commit_after>{
  "schema": {
    "name": "mdJson",
    "version": "2.0.0"
  },
  "contact": [
    {
      "contactId": "CID001",
      "isOrganization": false,
      "name": "contact - minimal"
    }
  ],
  "metadata": {
    "metadataInfo": {
      "metadataContact": [
        {
          "role": "metadataContact",
          "party": [
            {
              "contactId": "CID001"
            }
          ]
        }
      ]
    },
    "resourceInfo": {
      "resourceType": [
        {
          "type": "type",
          "name": "name"
        }
      ],
      "citation": {
        "title": "title"
      },
      "abstract": "abstract",
      "status": ["status"],
      "pointOfContact": [
        {
          "role": "pointOfContact",
          "party": [
            {
              "contactId": "CID001"
            }
          ]
        }
      ],
      "defaultResourceLocale": {
        "language": "eng",
        "country": "USA",
        "characterSet": "UTF-8"
      },
      "constraint": [
        {
          "type": "use",
          "useLimitation": [
            "useLimitation0",
            "useLimitation1"
          ]
        },
        {
          "type": "legal",
          "legal": {
            "useConstraint": [
              "useConstraint0",
              "useConstraint1"
            ],
            "accessConstraint": [
              "accessConstraint0",
              "accessConstraint1"
            ],
            "otherConstraint": [
              "otherConstraint0",
              "otherConstraint1"
            ]
          }
        },
        {
          "type": "legal",
          "legal": {
            "useConstraint": [
              "useConstraint0"
            ],
            "accessConstraint": [],
            "otherConstraint": []
          }
        },
        {
          "type": "legal",
          "legal": {
            "useConstraint": [
              "useConstraint0"
            ]
          }
        },
        {
          "type": "legal",
          "legal": {
            "otherConstraint": [
              "otherConstraint0"
            ]
          }
        },
        {
          "type": "security",
          "security": {
            "classification": "classification",
            "classificationSystem": "classificationSystem",
            "userNote": "userNote",
            "handlingDescription": "handlingDescription"
          }
        }
      ]
    }
  }
}
{'fraction_non_alphanumeric': 0.14311234616911472, 'fraction_numerical': 0.010520047637951568, 'mean_word_length': 1.1136744966442953, 'pattern_counts': {'":': 107, '<': 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': '1461703', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1340, 'n_words': 202}