<commit_before>require_relative 'lib/util/ruby_changes'

require_relative 'lib/managers/game'

require_relative 'lib/managers/producer'


manager = GameManager.new
ProducerManager.new('air', 10, 'Air Producer', manager, 1)
ProducerManager.new('earth', 5, 'Earth Producer', manager, 1)
manager.crafter.add_recipe!({'Air Producer' => 1, 'Earth Producer' => 1}, ProducerManager.new('fire', 15, 'Fire Producer'))

loop do # Main loop
  clone = manager.clone
  threads = []
  threads << Thread.new { clone.log_vals }
  threads << Thread.new { manager = clone.tick }
  threads.each { |thr| thr.join }
<commit_msg>Small fix<commit_after>require_relative 'lib/util/ruby_changes'

require_relative 'lib/managers/game'

require_relative 'lib/managers/producer'


manager = GameManager.new
ProducerManager.new('air', 10, 'Air Producer', manager, 1)
ProducerManager.new('earth', 5, 'Earth Producer', manager, 1)
manager.crafter.add_recipe!({'Air Producer' => 1, 'Earth Producer' => 1}, ProducerManager.new('fire', 15, 'Fire Producer'))

loop do # Main loop
  clone = manager.clone
  Thread.new { manager =  clone.tick }.join
  clone.log_vals
{'fraction_non_alphanumeric': 0.14614703277236493, 'fraction_numerical': 0.015943312666076175, 'mean_word_length': 5.457142857142857, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4830616', 'n_tokens_mistral': 406, 'n_tokens_neox': 375, 'n_words': 89}