<commit_before>[
  '{{repeat(3)}}',
  {
    "indicator": function(idx) {
      var names = [
        'SO2 Concentration', 'NO2 Concentration', 'PM10 Count'
      ];

      return names[this.numeric(0, names.length - 1)];
    },
    "data": [
        '{{repeat(3)}}',
        {
            "date": function(idx) {
              window.indicatorTexts = {
                GOOD: 0,
                BAD: 0
              };

              return "200" + idx + "-01-01T00:00:00.000Z";
            },
            "station": [
                '{{repeat(5)}}',
                {
                  "text": function(idx) {
                    window.window.window.value = this.numeric(0, 100);
                    
                    if (value > 50) {
                      choice = 'GOOD';
                    } else {
                      choice = 'BAD';
                    }
                    window.indicatorTexts[choice] += 1;
                    return choice;
                  },
                  "station": "{{lorem(1)}}",
                  "value": function(idx) {
                    return window.value;
                  },
                  "periodStart": 1357005600000,
                  "geometry": {
                    "x": '{{numeric(50.000001,51)}}',
                    "y": '{{numeric(0.000001,1)}}',
                  }
                }
            ],
            "value": function(idx) {
              var stationCount = indicatorTexts.GOOD + indicatorTexts.BAD;
              var value;

              if (indicatorTexts.GOOD > indicatorTexts.BAD) {
                 value = indicatorTexts.GOOD;
                 window.text = 'GOOD';
              } else {
                 value = indicatorTexts.BAD;
                 window.text = 'BAD';
              }

              return value + " of " + stationCount;
            },
            "text": function(idx) {
              return window.text;
            }
        }
    ]
  }
]<commit_msg>Correctly loop over indicator names<commit_after>[
  '{{repeat(3)}}',
  {
    "indicator": function(idx) {
      var names = [
        'SO2 Concentration', 'NO2 Concentration', 'PM10 Concentration'
      ];

      return names[idx];
    },
    "data": [
        '{{repeat(3)}}',
        {
            "date": function(idx) {
              window.indicatorTexts = {
                GOOD: 0,
                BAD: 0
              };

              return "200" + idx + "-01-01T00:00:00.000Z";
            },
            "station": [
                '{{repeat(5)}}',
                {
                  "text": function(idx) {
                    window.window.window.value = this.numeric(0, 100);

                    if (value > 50) {
                      choice = 'GOOD';
                    } else {
                      choice = 'BAD';
                    }
                    window.indicatorTexts[choice] += 1;
                    return choice;
                  },
                  "station": "{{lorem(1)}}",
                  "value": function(idx) {
                    return window.value;
                  },
                  "periodStart": 1357005600000,
                  "geometry": {
                    "x": '{{numeric(0.000001,1)}}',
                    "y": '{{numeric(50.000001,51)}}'
                  }
                }
            ],
            "value": function(idx) {
              var stationCount = indicatorTexts.GOOD + indicatorTexts.BAD;
              var value;

              if (indicatorTexts.GOOD > indicatorTexts.BAD) {
                 value = indicatorTexts.GOOD;
                 window.text = 'GOOD';
              } else {
                 value = indicatorTexts.BAD;
                 window.text = 'BAD';
              }

              return value + " of " + stationCount;
            },
            "text": function(idx) {
              return window.text;
            }
        }
    ]
  }
]
{'fraction_non_alphanumeric': 0.1299000768639508, 'fraction_numerical': 0.03330771201639764, 'mean_word_length': 0.9355478433316807, 'pattern_counts': {'":': 26, '<': 3, '<?xml version=': 0, '>': 7, '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': '2973695', 'n_tokens_mistral': 1145, 'n_tokens_neox': 989, 'n_words': 180}