<commit_before>{
  "rules": {
    ".read": "true",
    ".write": "auth != null",
    "counter": {
      ".write": "true",
      ".validate": "newData.isNumber()"
    },
    "car": {
      ".write": "true",
      ".validate": "newData.hasChildren(['tires', 'type', 'maxSpeed'])",
      "tires": {
        ".validate": "newData.isNumber()"
      },
      "engine": {
        ".validate": "newData.val() === 'V8'"
      },
      "type": {
        ".validate": "newData.val() === 'Sedan'"
      },
      "maxSpeed": {
        ".validate": "newData.isNumber() && newData.val() > 79"
      },
      "$other": { ".validate": false }
    },
    "groceries":{
      ".write": "true"
    }
  }<commit_msg>chore(examples): update Firebase rules<commit_after>{
  "rules": {
    ".read": "true",
    ".write": "auth != null",
    "car": {
      ".write": "true",
      ".validate": "newData.hasChildren(['tires', 'type', 'maxSpeed'])",
      "tires": {
        ".validate": "newData.isNumber()"
      },
      "engine": {
        ".validate": "newData.val() === 'V8'"
      },
      "type": {
        ".validate": "newData.val() === 'Sedan'"
      },
      "maxSpeed": {
        ".validate": "newData.isNumber() && newData.val() > 79"
      },
      "$other": { ".validate": "false" }
    },
    "groceries":{
      ".write": "true",
      "$item": {
        "text": {
          ".validate": "root.child('rules/groceries/' + newData.val()).exists()"
        },
        "$other": { ".validate": "false" }
      }
    }
  }
{'fraction_non_alphanumeric': 0.253315649867374, 'fraction_numerical': 0.003978779840848806, 'mean_word_length': 1.970472440944882, 'pattern_counts': {'":': 44, '<': 3, '<?xml version=': 0, '>': 5, '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': '5701480', 'n_tokens_mistral': 522, 'n_tokens_neox': 513, 'n_words': 88}