<commit_before>require 'spec_helper'
include GitStatistics

describe CommitSummary do

  let(:sha) { "bf09a64b0e0f801d3e7fe4e002cbd1bf517340a7" }
  let(:repo) { Utilities.get_repository }
  subject(:commit) { CommitSummary.new(repo.commit(sha)) }
<commit_msg>Updating specs with Repo class<commit_after>require 'spec_helper'
include GitStatistics

describe CommitSummary do

  let(:sha) { "bf09a64b0e0f801d3e7fe4e002cbd1bf517340a7" }
  let(:repo) { Repo.find }
  subject(:commit) { CommitSummary.new(repo.commit(sha)) }

{'fraction_non_alphanumeric': 0.11153846153846154, 'fraction_numerical': 0.08846153846153847, 'mean_word_length': 7.015384615384615, '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': '2823025', 'n_tokens_mistral': 218, 'n_tokens_neox': 194, 'n_words': 30}