<commit_before>module Lobbyist
  module V2

    class CustomFilterUpload < Lobbyist::V2::Base
      attr_accessor :id, :company_id, :filename, :status, :created_at, :updated_at

      def self.create(company_id, params = {})
        create_from_response(post("/v2/companies/#{company_id}/custom-filter-uploads.json", { csv_upload: params }))
      end

      def self.list(company_id, params = {})
        create_collection_from_response(get("/v2/companies/#{company_id}/custom-filter-uploads.json", params))
      end

      def self.process_file(id, params = {})
        create_from_response(put("/v2/custom-filter-uploads/#{id}/process-file.json", params))
      end
    end<commit_msg>CA-5656:FIx create method.<commit_after>module Lobbyist
  module V2

    class CustomFilterUpload < Lobbyist::V2::Base
      attr_accessor :id, :company_id, :filename, :status, :created_at, :updated_at

      def self.create(company_id, params = {})
        create_from_response(post("/v2/companies/#{company_id}/custom-filter-uploads.json", { custom_filter_upload: params }))
      end

      def self.list(company_id, params = {})
        create_collection_from_response(get("/v2/companies/#{company_id}/custom-filter-uploads.json", params))
      end

      def self.process_file(id, params = {})
        create_from_response(put("/v2/custom-filter-uploads/#{id}/process-file.json", params))
      end
    end
{'fraction_non_alphanumeric': 0.1377587437544611, 'fraction_numerical': 0.009992862241256246, 'mean_word_length': 3.688963210702341, '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': '353964', 'n_tokens_mistral': 462, 'n_tokens_neox': 446, 'n_words': 69}