<commit_before># frozen_string_literal: true

class API
  # API for Observation
  # rubocop:disable Metrics/ClassLength
  class ObservationAPI < ModelAPI
    self.model = Observation

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

    self.high_detail_includes = [
      :comments,
      { images: [ :license, :observations ] },
      :location,
      :name,
      { namings: [:name, { votes: :user }] },
      :collection_numbers,
      { herbarium_records: :herbarium },
      :sequences,<commit_msg>Fix Codeclimate issue left over from PR 662<commit_after># frozen_string_literal: true

class API
  # API for Observation
  # rubocop:disable Metrics/ClassLength
  class ObservationAPI < ModelAPI
    self.model = Observation

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

    self.high_detail_includes = [
      :comments,
      { images: [:license, :observations] },
      :location,
      :name,
      { namings: [:name, { votes: :user }] },
      :collection_numbers,
      { herbarium_records: :herbarium },
      :sequences,
{'fraction_non_alphanumeric': 0.09409888357256778, 'fraction_numerical': 0.023125996810207338, 'mean_word_length': 2.873456790123457, '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': '2471467', 'n_tokens_mistral': 431, 'n_tokens_neox': 394, 'n_words': 82}