<commit_before>module Disc::Job
  attr_accessor :disque_id,
                :arguments

  def self.included(base)
    base.extend(ClassMethods)
  end

  #def info
  #  return nil if disque_id.nil?

  #  Hash[*self.class.disque.call("SHOW", disque_id)]
  #end

  #def state
  #  current_info = info
  #  return nil if info.nil?

  #  info.fetch('state')
  #end

  module ClassMethods
    def [](disque_id)
      job_data = disque.call("SHOW", disque_id)
      return nil if job_data.nil?

      job = self.new
      job_data = Hash[*job_data]

      job.disque_id = disque_id
      job.arguments = Disc.deserialize(job_data.fetch('body')).fetch('arguments')

      return job
    end

    def disque
      defined?(@disque) ? @disque : Disc.disque
    end

    def disque=(disque)
      @disque = disque
    end

    def disc(queue: nil, **options)
      @queue = queue
      @disc_options = options
    end

    def disc_options
      @disc_options ||= {}
    end
<commit_msg>Deprecated code<commit_after>module Disc::Job
  attr_accessor :disque_id,
                :arguments

  def self.included(base)
    base.extend(ClassMethods)
  end

  #def info
  #  return nil if disque_id.nil?

  #  Hash[*self.class.disque.call("SHOW", disque_id)]
  #end

  #def state
  #  current_info = info
  #  return nil if info.nil?

  #  info.fetch('state')
  #end

  module ClassMethods
    def disque
      defined?(@disque) ? @disque : Disc.disque
    end

    def disque=(disque)
      @disque = disque
    end

    def disc(queue: nil, **options)
      @queue = queue
      @disc_options = options
    end

    def disc_options
      @disc_options ||= {}
    end

{'fraction_non_alphanumeric': 0.11010284331518451, 'fraction_numerical': 0.0, 'mean_word_length': 2.4103092783505153, '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': '2681296', 'n_tokens_mistral': 601, 'n_tokens_neox': 568, 'n_words': 129}