<commit_before># -*- encoding : utf-8 -*-

module SlimApi
  class Contract < Hashr
    
    include SlimObject

    NAME = :contract

    def client
      if @client
        @client
      elsif (client = Client.find(id: self[:client_id])).size == 1
        @client = client.first
      else
        nil
      end
    end

    def campaign
      @campaign ||= Campaign.find(contract_id: sef[:id])
    end

    def stats args = {}
      Statistics.find(args.merge(campaign_id: self[:id]))
    end

  end
end<commit_msg>[FIX] Typo in contract<commit_after># -*- encoding : utf-8 -*-

module SlimApi
  class Contract < Hashr
    
    include SlimObject

    NAME = :contract

    def client
      if @client
        @client
      elsif (client = Client.find(id: self[:client_id])).size == 1
        @client = client.first
      else
        nil
      end
    end

    def campaign
      @campaign ||= Campaign.find(contract_id: self[:id])
    end

    def stats args = {}
      Statistics.find(args.merge(campaign_id: self[:id]))
    end

  end
end
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.0038314176245210726, 'mean_word_length': 2.0377906976744184, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3081665', 'n_tokens_mistral': 340, 'n_tokens_neox': 320, 'n_words': 86}