<commit_before>print 'pod name > '
cocoapod = gets.chop
file_names = Dir["#{Dir.pwd}/**/*.*"]
ignored_file_types = ['.xccheckout',
                      '.xcodeproj',
                      '.xcworkspace',
                      '.xcuserdatad',
                      '.xcuserstate']

file_names.each do |file_name|
    if !ignored_file_types.include?(File.extname(file_name))
        text = File.read(file_name)
        new_contents = text.gsub(/CocoaPod/, cocoapod)
        File.open(file_name, "w") {|file| file.puts new_contents }
    end
end
<commit_msg>Refactor init.rb<commit_after>require 'fileutils'

print 'pod name > '
cocoapod = gets.chop
file_names = Dir["#{Dir.pwd}/**/*.*"]
ignored_file_types = ['.xccheckout',
                      '.xcodeproj',
                      '.xcworkspace',
                      '.xcuserdatad',
                      '.xcuserstate']

file_names.each do |file_name|
    if !ignored_file_types.include?(File.extname(file_name))
        text = File.read(file_name)
        new_contents = text.gsub(/Foobar/, cocoapod)
        File.open(file_name, "w") {|file| file.puts new_contents }
    end
end

git_directory = "#{Dir.pwd}/.git"
FileUtils.rm_rf git_directory

system("git init && git add . && git commit -am 'Initial commit'")

{'fraction_non_alphanumeric': 0.14443567482241515, 'fraction_numerical': 0.0, 'mean_word_length': 2.2764857881136953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1279247', 'n_tokens_mistral': 436, 'n_tokens_neox': 433, 'n_words': 76}