<commit_before># encoding: utf-8
class API
  # API queries on external_links table.
  class ExternalLinkAPI < ModelAPI
    self.model = ExternalLink

    self.high_detail_page_length = 100
    self.low_detail_page_length  = 1000
    self.put_page_length         = 1000
    self.delete_page_length      = 1000

    self.high_detail_includes = [
      :external_site,
      :object,
      :user
    ]

    def query_params
      {
        where: sql_id_condition,
        created_at: parse_time_range(:created_at),
        updated_at: parse_time_range(:updated_at),
        users: parse_users(:user),
        observations: parse_observations(:observations),
        external_sites: parse_external_sites(:external_sites),
        url: parse_string(:url)
      }
    end

    def build_object
      raise NoMethodForAction("POST", action)
    end

    def build_setter
      raise NoMethodForAction("PUT", action)
    end

    def delete
      raise NoMethodForAction("DELETE", action)
    end
  end
end<commit_msg>Lined up indentation.<commit_after># encoding: utf-8
class API
  # API queries on external_links table.
  class ExternalLinkAPI < ModelAPI
    self.model = ExternalLink

    self.high_detail_page_length = 100
    self.low_detail_page_length  = 1000
    self.put_page_length         = 1000
    self.delete_page_length      = 1000

    self.high_detail_includes = [
      :external_site,
      :object,
      :user
    ]

    def query_params
      {
        where:          sql_id_condition,
        created_at:     parse_time_range(:created_at),
        updated_at:     parse_time_range(:updated_at),
        users:          parse_users(:user),
        observations:   parse_observations(:observations),
        external_sites: parse_external_sites(:external_sites),
        url:            parse_string(:url)
      }
    end

    def build_object
      raise NoMethodForAction("POST", action)
    end

    def build_setter
      raise NoMethodForAction("PUT", action)
    end

    def delete
      raise NoMethodForAction("DELETE", action)
    end
  end
end
{'fraction_non_alphanumeric': 0.07394876752054133, 'fraction_numerical': 0.015466408893185114, 'mean_word_length': 2.5144312393887946, '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': '4651814', 'n_tokens_mistral': 659, 'n_tokens_neox': 608, 'n_words': 129}