<commit_before>
Given(/^our fee is "(.*?)"$/) do |arg1|
  CONFIG["our_fee"] = arg1.to_f
end

Given(/^the tip percentage per commit is "(.*?)"$/) do |arg1|
  CONFIG["tip"] = arg1.to_f
end

Given(/^the minimum tip amount is "(.*?)"$/) do |arg1|
  CONFIG["min_tip"] = arg1.to_f * 1e8
end

Given(/^a deposit of "(.*?)" is made$/) do |deposit|
  Deposit.create!(project: @current_project, amount: deposit.to_d * 1e8, confirmations: 2)
end

def add_new_commit commit_id , nickname , params = {}
  raise "duplicate commit_id" if (find_new_commit commit_id).present?
<commit_msg>fixed tests<commit_after>
Given(/^our fee is "(.*?)"$/) do |arg1|
  CONFIG["our_fee"] = arg1.to_f
end

Given(/^the tip percentage per commit is "(.*?)"$/) do |arg1|
  CONFIG["tip"] = arg1.to_f
end

Given(/^the minimum tip amount is "(.*?)"$/) do |arg1|
  CONFIG["min_tip"] = arg1.to_f * 1e8
end

Given(/^a deposit of "(.*?)" is made$/) do |deposit|
  Deposit.create!(project: @current_project, amount: deposit.to_d * 1e8, confirmations: 10)
end

def add_new_commit commit_id , nickname , params = {}
  raise "duplicate commit_id" if (find_new_commit commit_id).present?

{'fraction_non_alphanumeric': 0.18404907975460122, 'fraction_numerical': 0.020157756354075372, 'mean_word_length': 4.543689320388349, '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': '1773480', 'n_tokens_mistral': 457, 'n_tokens_neox': 435, 'n_words': 115}