<commit_before>class Position
  def initialize(html)
    @html = html
    @left = extract_position_from_html("LEFT: ")
    @top = extract_position_from_html("TOP: ")
    @id = calculate_id_from_positions
  end
  def extract_class_from_html
    @html.split("=")[1].split(" ")[0]
  end
  def extract_position_from_html(position)<commit_msg>position knows it's class when initialized<commit_after>class Position
  def initialize(html)
    @html = html
    @left = extract_position_from_html("LEFT: ")
    @top = extract_position_from_html("TOP: ")
    @id = calculate_id_from_positions
    @class = extract_class_from_html
  end
  def extract_class_from_html
    @html.split("=")[1].split(" ")[0]
  end
  def extract_position_from_html(position)
{'fraction_non_alphanumeric': 0.11455525606469003, 'fraction_numerical': 0.005390835579514825, 'mean_word_length': 4.850393700787402, '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': '4385249', 'n_tokens_mistral': 248, 'n_tokens_neox': 243, 'n_words': 46}