<commit_before><% @index_names.each_with_index do |index_name, j| %>
  <%= ',' if j > 0 %>{
    "collapse": false,
    "height": 250,
    "panels": [
      {
        "columns": [
          {
            "text": "Current",
            "value": "current"
          }
        ],
        "datasource": "Graphite",
        "fontSize": "100%",
        "hideTimeOverride": true,
        "id": <%= j * 2 %>,
        "links": [],
        "pageSize": null,
        "scroll": true,
        "showHeader": true,
        "sort": {
          "col": 0,
          "desc": true
        },
        "span": 4,
        "styles": [
          {
            "alias": "Time",
            "dateFormat": "DD MMM YYYY",
            "pattern": "Time",
            "type": "date"
          },
          {
            "alias": "",
            "colorMode": null,
            "colors": [
              "rgba(245, 54, 54, 0.9)",
              "rgba(237, 129, 40, 0.89)",
              "rgba(50, 172, 45, 0.97)"
            ],
            "decimals": 0,
            "pattern": "/.*/",
            "thresholds": [
              ""
            ],
            "type": "number",
            "unit": "none"
          }
        ],
        "targets": [
          {
            "refId": "A",
            "target": "alias(diffSeries(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252), timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252), '7d')),'Change')",
            "textEditor": true
          },
          {
            "refId": "B",
            "target": "alias(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252),'Index size')",
            "textEditor": true
          },
          {
            "refId": "C",
            "target": "alias(timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252), '7d'),'Index size (last week)')",
            "textEditor": true
          }
        ],
        "timeFrom": "5s",
        "timeShift": null,
        "title": "Change stats - <%= index_name %>",
        "transform": "timeseries_aggregations",
        "type": "table"
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Graphite",
        "fill": 1,
        "hideTimeOverride": true,
        "id": <%= 1 + (j * 2) %>,
        "legend": {
          "avg": false,
          "current": false,
          "max": false,
          "min": false,
          "show": true,
          "total": false,
          "values": false
        },
        "lines": true,
        "linewidth": 1,
        "links": [],
        "nullPointMode": "null",
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [
          {
            "alias": "Change",
            "color": "#BF1B00",
            "linewidth": 5,
            "yaxis": 2
          }
        ],
        "spaceLength": 10,
        "span": 8,
        "stack": false,
        "steppedLine": false,
        "targets": [
          {
            "refId": "C",
            "target": "alias(diffSeries(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252), timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252), '7d')),'Change')",
            "textEditor": true
          },
          {
            "refId": "A",
            "target": "alias(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252), 'Index size')",
            "textEditor": true
          },
          {
            "refId": "B",
            "target": "alias(timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.count,252),'7d'), 'Index size (last week)')",
            "textEditor": true
          }
        ],
        "thresholds": [],
        "timeFrom": "1d",
        "timeShift": null,
        "title": "<%= index_name %>",
        "tooltip": {
          "shared": true,
          "sort": 0,
          "value_type": "individual"
        },
        "type": "graph",<commit_msg>Update the search-api index size metric names (again)<commit_after><% @index_names.each_with_index do |index_name, j| %>
  <%= ',' if j > 0 %>{
    "collapse": false,
    "height": 250,
    "panels": [
      {
        "columns": [
          {
            "text": "Current",
            "value": "current"
          }
        ],
        "datasource": "Graphite",
        "fontSize": "100%",
        "hideTimeOverride": true,
        "id": <%= j * 2 %>,
        "links": [],
        "pageSize": null,
        "scroll": true,
        "showHeader": true,
        "sort": {
          "col": 0,
          "desc": true
        },
        "span": 4,
        "styles": [
          {
            "alias": "Time",
            "dateFormat": "DD MMM YYYY",
            "pattern": "Time",
            "type": "date"
          },
          {
            "alias": "",
            "colorMode": null,
            "colors": [
              "rgba(245, 54, 54, 0.9)",
              "rgba(237, 129, 40, 0.89)",
              "rgba(50, 172, 45, 0.97)"
            ],
            "decimals": 0,
            "pattern": "/.*/",
            "thresholds": [
              ""
            ],
            "type": "number",
            "unit": "none"
          }
        ],
        "targets": [
          {
            "refId": "A",
            "target": "alias(diffSeries(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252), timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252), '7d')),'Change')",
            "textEditor": true
          },
          {
            "refId": "B",
            "target": "alias(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252),'Index size')",
            "textEditor": true
          },
          {
            "refId": "C",
            "target": "alias(timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252), '7d'),'Index size (last week)')",
            "textEditor": true
          }
        ],
        "timeFrom": "5s",
        "timeShift": null,
        "title": "Change stats - <%= index_name %>",
        "transform": "timeseries_aggregations",
        "type": "table"
      },
      {
        "aliasColors": {},
        "bars": false,
        "dashLength": 10,
        "dashes": false,
        "datasource": "Graphite",
        "fill": 1,
        "hideTimeOverride": true,
        "id": <%= 1 + (j * 2) %>,
        "legend": {
          "avg": false,
          "current": false,
          "max": false,
          "min": false,
          "show": true,
          "total": false,
          "values": false
        },
        "lines": true,
        "linewidth": 1,
        "links": [],
        "nullPointMode": "null",
        "percentage": false,
        "pointradius": 5,
        "points": false,
        "renderer": "flot",
        "seriesOverrides": [
          {
            "alias": "Change",
            "color": "#BF1B00",
            "linewidth": 5,
            "yaxis": 2
          }
        ],
        "spaceLength": 10,
        "span": 8,
        "stack": false,
        "steppedLine": false,
        "targets": [
          {
            "refId": "C",
            "target": "alias(diffSeries(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252), timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252), '7d')),'Change')",
            "textEditor": true
          },
          {
            "refId": "A",
            "target": "alias(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252), 'Index size')",
            "textEditor": true
          },
          {
            "refId": "B",
            "target": "alias(timeShift(keepLastValue(stats.gauges.govuk.app.search-api.cluster_A.<%= index_name %>_index.docs.total,252),'7d'), 'Index size (last week)')",
            "textEditor": true
          }
        ],
        "thresholds": [],
        "timeFrom": "1d",
        "timeShift": null,
        "title": "<%= index_name %>",
        "tooltip": {
          "shared": true,
          "sort": 0,
          "value_type": "individual"
        },
        "type": "graph",
{'fraction_non_alphanumeric': 0.18298909259689022, 'fraction_numerical': 0.020190299373404504, 'mean_word_length': 1.5462333825701624, 'pattern_counts': {'":': 196, '<': 31, '<?xml version=': 0, '>': 33, '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': '6814777', 'n_tokens_mistral': 2902, 'n_tokens_neox': 2702, 'n_words': 480}