<commit_before>require './helper/helper.rb'

require './coder.rb'
Dir["./coders/*.rb"].each { |file| require file }

require './event.rb'
Dir["./events/*.rb"].each { |file| require file }

require './company.rb'
Dir["./companies/*.rb"].each { |file| require file }

require './project.rb'
Dir["./projects/*.rb"].each { |file| require file }

class StartupGame
  attr_accessor :week

  def initialize
    @week = 0
    @company = Fivecent.new
    @project = UberBeating.new
  end

  def coders
    @coders ||=
      [
        D.new,
        SixSeconds.new,
        Stone.new,
        GrandPaFour.new,
        Araragi.new,
        LittleLongLong.new
      ]
  end

  def events
    @events ||=
      [
        KillPM.new
      ]
  end

  def run
    while @project.remain_difficulty > 0 && @company.money > 0
      self.week += 1
      old_remain_difficulty = @project.remain_difficulty
      puts "第#{@week}周开始了，键盘的敲击声响起"
      one_week
      forword = (old_remain_difficulty - @project.remain_difficulty).round
      puts "第#{@week}周结束了，成功完成了#{forword}点困难度， 还剩下#{@project.remain_difficulty.round}点困难度等待开发"<commit_msg>fix class name to wolf<commit_after>require './helper/helper.rb'

require './coder.rb'
Dir["./coders/*.rb"].each { |file| require file }

require './event.rb'
Dir["./events/*.rb"].each { |file| require file }

require './company.rb'
Dir["./companies/*.rb"].each { |file| require file }

require './project.rb'
Dir["./projects/*.rb"].each { |file| require file }

class StartupGame
  attr_accessor :week

  def initialize
    @week = 0
    @company = Fivecent.new
    @project = UberBeating.new
  end

  def coders
    @coders ||=
      [
        D.new,
        SixSeconds.new,
        Stone.new,
        GrandPaFour.new,
        Araragi.new,
        Wolf.new
      ]
  end

  def events
    @events ||=
      [
        KillPM.new
      ]
  end

  def run
    while @project.remain_difficulty > 0 && @company.money > 0
      self.week += 1
      old_remain_difficulty = @project.remain_difficulty
      puts "第#{@week}周开始了，键盘的敲击声响起"
      one_week
      forword = (old_remain_difficulty - @project.remain_difficulty).round
      puts "第#{@week}周结束了，成功完成了#{forword}点困难度， 还剩下#{@project.remain_difficulty.round}点困难度等待开发"
{'fraction_non_alphanumeric': 0.14599193909538738, 'fraction_numerical': 0.0035826242722794446, 'mean_word_length': 2.5070643642072215, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3880062', 'n_tokens_mistral': 867, 'n_tokens_neox': 870, 'n_words': 151}