<commit_before>require 'pry'
require 'json'
require 'cucumber/blanket'

class FakePage
  attr_reader :coverage_data

  def initialize
    @coverage_data = parse_fixture_json
  end

  def parse_fixture_json
    json = File.read(File.join(File.dirname(__FILE__),'fixtures','simple.json'))
    return JSON.parse(json) # How it looks when we get it from Selenium
  end

  def evaluate_script script
    if script == "window.COVERAGE_RESULTS"
      self.coverage_data
    end
  end

  ##
  # Helper to change the lines of coverage for testing flattening
  # of two sets of coverage data
  def cov_lines
    
  end
end
<commit_msg>remove unused method in spec helper<commit_after>require 'pry'
require 'json'
require 'cucumber/blanket'

class FakePage
  attr_reader :coverage_data

  def initialize
    @coverage_data = parse_fixture_json
  end

  def parse_fixture_json
    json = File.read(File.join(File.dirname(__FILE__),'fixtures','simple.json'))
    return JSON.parse(json) # How it looks when we get it from Selenium
  end

  def evaluate_script script
    if script == "window.COVERAGE_RESULTS"
      self.coverage_data
    end
  end
end

{'fraction_non_alphanumeric': 0.07368421052631578, 'fraction_numerical': 0.0, 'mean_word_length': 3.7941176470588234, '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': '5730971', 'n_tokens_mistral': 380, 'n_tokens_neox': 367, 'n_words': 106}