<commit_before>{
  "_links": {
    "self": {
      "href": "http://localhost:8080/nice2/rest/entities/User/model"
    }
  },
  "name": "User",
  "createPermission": true,
  "fields": [
    {
      "fieldName": "pk",
      "type": "serial",
      "validation": {}
    },
    {
      "fieldName": "firstname",
      "type": "string",
      "validation": {
        "mandatory": true,
        "minLength": 3
      }
    },
    {
      "fieldName": "lastname",
      "type": "string",
      "validation": {
        "mandatory": true
      }
    },
    {
      "fieldName": "email",
      "type": "email",
      "validation": {
        "mandatory": true,
        "email": true
      }
    },
    {
      "fieldName": "version",
      "type": "version",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "create_timestamp",
      "type": "createts",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "update_timestamp",
      "type": "updatets",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "create_user",
      "type": "createuser",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "update_user",
      "type": "updateuser",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "user_nr",
      "type": "counter",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "callname",
      "type": "string",
      "validation": {
        "mandatory": true,
        "maxLength": 10
      }
    },
    {
      "fieldName": "birthdate",
      "type": "birthdate",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "age",
      "type": "number",
      "validation": {
        "mandatory": true,
        "decimalDigits": {
          "prePointDigits": -1,
          "postPointDigits": 0
        },
        "numberRange": {
          "fromIncluding": 0,
          "toIncluding": 200
        }
      }
    },
    {
      "fieldName": "phone_company",
      "type": "phone"
    },
    {
      "fieldName": "preview_picture",
      "type": "document",
      "validation": {}
    },
    {
      "fieldName": "website",
      "type": "url",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "date_time",
      "type": "datetime",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "publish",
      "type": "boolean",
      "validation": {
        "mandatory": false
      }
    }
  ],
  "relations": [
    {
      "relationName": "relSingle_entity1",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": false,
      "validation": {
        "mandatory": true
      }
    },
    {
      "relationName": "relSingle_entity2",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": false,
      "validation": {
      }
    },
    {
      "relationName": "relMulti_entity1",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": true,
      "validation": {
        "mandatory": true
      }
    },
    {
      "relationName": "relMulti_entity2",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": true
    },
    {
      "relationName": "relUser",
      "targetEntity": "User",
      "reverseRelationName": "relUser",
      "multi": false
    },
    {
      "relationName": "relChildren",
      "targetEntity": "User",
      "reverseRelationName": "relUser",
      "multi": true
    },
    {
      "relationName": "relDummySubGrid",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": true
    }<commit_msg>refactor(tocco-util): make relationsfields with data mandatory<commit_after>{
  "_links": {
    "self": {
      "href": "http://localhost:8080/nice2/rest/entities/User/model"
    }
  },
  "name": "User",
  "createPermission": true,
  "fields": [
    {
      "fieldName": "pk",
      "type": "serial",
      "validation": {}
    },
    {
      "fieldName": "firstname",
      "type": "string",
      "validation": {
        "mandatory": true,
        "minLength": 3
      }
    },
    {
      "fieldName": "lastname",
      "type": "string",
      "validation": {
        "mandatory": true
      }
    },
    {
      "fieldName": "email",
      "type": "email",
      "validation": {
        "mandatory": true,
        "email": true
      }
    },
    {
      "fieldName": "version",
      "type": "version",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "create_timestamp",
      "type": "createts",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "update_timestamp",
      "type": "updatets",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "create_user",
      "type": "createuser",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "update_user",
      "type": "updateuser",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "user_nr",
      "type": "counter",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "callname",
      "type": "string",
      "validation": {
        "mandatory": true,
        "maxLength": 10
      }
    },
    {
      "fieldName": "birthdate",
      "type": "birthdate",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "age",
      "type": "number",
      "validation": {
        "mandatory": true,
        "decimalDigits": {
          "prePointDigits": -1,
          "postPointDigits": 0
        },
        "numberRange": {
          "fromIncluding": 0,
          "toIncluding": 200
        }
      }
    },
    {
      "fieldName": "phone_company",
      "type": "phone"
    },
    {
      "fieldName": "preview_picture",
      "type": "document",
      "validation": {}
    },
    {
      "fieldName": "website",
      "type": "url",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "date_time",
      "type": "datetime",
      "validation": {
        "mandatory": false
      }
    },
    {
      "fieldName": "publish",
      "type": "boolean",
      "validation": {
        "mandatory": false
      }
    }
  ],
  "relations": [
    {
      "relationName": "relSingle_entity1",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": false,
      "validation": {
        "mandatory": false
      }
    },
    {
      "relationName": "relSingle_entity2",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": false,
      "validation": {
        "mandatory": true
      }
    },
    {
      "relationName": "relMulti_entity1",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": true,
      "validation": {
      }
    },
    {
      "relationName": "relMulti_entity2",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": true,
      "validation": {
        "mandatory": true
      }
    },
    {
      "relationName": "relUser",
      "targetEntity": "User",
      "reverseRelationName": "relUser",
      "multi": false
    },
    {
      "relationName": "relChildren",
      "targetEntity": "User",
      "reverseRelationName": "relUser",
      "multi": true
    },
    {
      "relationName": "relDummySubGrid",
      "targetEntity": "Dummy_entity",
      "reverseRelationName": "relUser",
      "multi": true
    }
{'fraction_non_alphanumeric': 0.17604636188023182, 'fraction_numerical': 0.00463618802318094, 'mean_word_length': 1.7676407697790448, 'pattern_counts': {'":': 236, '<': 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': '4038975', 'n_tokens_mistral': 2526, 'n_tokens_neox': 2491, 'n_words': 426}