<commit_before>require 'res'

describe Res.perf_data do
  cucumber_command = "unset BUNDLE_GEMFILE; unset RUBYOPT; cd examples/cucumber; bundle exec cucumber"
  it "Submit performance results to res" do
        `#{cucumber_command} features/performance.feature -f Res::Formatters::RubyCucumberLegacy -o out.res`
        ir = Res::IR.load("examples/cucumber/out.res")
        expect(ir.tests.first).to have_key(:value)
      end
end<commit_msg>Added expect to check if added value is hash<commit_after>require 'res'

describe Res.perf_data do
  cucumber_command = "unset BUNDLE_GEMFILE; unset RUBYOPT; cd examples/cucumber; bundle exec cucumber"
  it "Submit performance results to res" do
        `#{cucumber_command} features/performance.feature -f Res::Formatters::RubyCucumberLegacy -o out.res`
        ir = Res::IR.load("examples/cucumber/out.res")
        expect(ir.tests.first).to have_key(:value)
        expect(ir.tests.first[:value]).to be_a Hash
      end
end
{'fraction_non_alphanumeric': 0.10732714138286893, 'fraction_numerical': 0.0, 'mean_word_length': 4.0785340314136125, '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': '6505918', 'n_tokens_mistral': 328, 'n_tokens_neox': 319, 'n_words': 78}