<commit_before>class Neighborhood:

    def __init__(self, headers, row):
      self.dict = {}
      for i, h in enumerate(headers):
        try:
            self.dict[h] = float(row[i])
        except:
            self.dict[h] = row[i]

    def get_measurement(self, header):
        return self.dict[header]<commit_msg>Add note to Neighborhood constructor<commit_after>class Neighborhood:

    def __init__(self, headers, row):
      self.dict = {}
      for i, h in enumerate(headers):
        try:
            self.dict[h] = float(row[i])
        # handles the case of missing values, which are very minimal
        except:
            self.dict[h] = row[i]

    def get_measurement(self, header):
        return self.dict[header]

{'fraction_non_alphanumeric': 0.11156462585034013, 'fraction_numerical': 0.0, 'mean_word_length': 2.2711111111111113, 'pattern_counts': {'":': 0, '<': 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': '1273040', 'n_tokens_mistral': 227, 'n_tokens_neox': 217, 'n_words': 59}