<commit_before>class Feature < PlacesResource
  headers['Host'] = PlacesResource.headers['Host'] if !PlacesResource.headers['Host'].blank?
  
  def self.find_by_geo_code(geo_code_type, geo_code)
    Feature.get("by_geo_code/#{geo_code}", :geo_code_type => geo_code_type)
  end
end<commit_msg>adding feature_type_ids to api<commit_after>class Feature < PlacesResource
  headers['Host'] = PlacesResource.headers['Host'] if !PlacesResource.headers['Host'].blank?
  
  def self.find_by_geo_code(geo_code_type, geo_code)
    Feature.get("by_geo_code/#{geo_code}", :geo_code_type => geo_code_type)
  end
  
  def feature_type_ids
    if self.feature_type.instance_of? Array
      return self.feature_type.collect{|type| type.id.to_i }
    else
      return [self.feature_type.id.to_i]
    end
  end
end
{'fraction_non_alphanumeric': 0.11809045226130653, 'fraction_numerical': 0.0, 'mean_word_length': 5.130769230769231, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5177266', 'n_tokens_mistral': 285, 'n_tokens_neox': 275, 'n_words': 45}