<commit_before>class BuildPartitioningJob < JobBase
  @queue = :partition

  def initialize(build_id)
    @build = Build.find(build_id)
  end

  def perform
    # TODO: some error checking on the shell-outs

    GitRepo.inside_copy("web-cache", @build.ref) do
      build_info = YAML.load_file("config/ci/build.yml")
      @build.partition(build_info.values.select {|part| part['type']})
    end

  end

  def on_exception(e)
    @build.update_attributes!(:state => :error)
    super
  end
end<commit_msg>remove old comment<commit_after>class BuildPartitioningJob < JobBase
  @queue = :partition

  def initialize(build_id)
    @build = Build.find(build_id)
  end

  def perform
    GitRepo.inside_copy("web-cache", @build.ref) do
      build_info = YAML.load_file("config/ci/build.yml")
      @build.partition(build_info.values.select {|part| part['type']})
    end
  end

  def on_exception(e)
    @build.update_attributes!(:state => :error)
    super
  end
end
{'fraction_non_alphanumeric': 0.12149532710280374, 'fraction_numerical': 0.0, 'mean_word_length': 3.679611650485437, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1191805', 'n_tokens_mistral': 336, 'n_tokens_neox': 323, 'n_words': 66}