<commit_before>class DiseasesController < ApplicationController
  actions_without_auth :index, :existence

  def index
    diseases = Disease.page(params[:page])
      .per(params[:count])
      diseases = name_search(doid_search(diseases))
      render json: diseases.map { |d| { name: d.name, doid: d.doid } }
  end

  def existence<commit_msg>add id to diseases index endpoint<commit_after>class DiseasesController < ApplicationController
  actions_without_auth :index, :existence

  def index
    diseases = Disease.page(params[:page])
      .per(params[:count])
      diseases = name_search(doid_search(diseases))
      render json: diseases.map { |d| { id: d.id, name: d.name, doid: d.doid } }
  end

  def existence
{'fraction_non_alphanumeric': 0.10941828254847645, 'fraction_numerical': 0.0, 'mean_word_length': 4.055944055944056, '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': '6704129', 'n_tokens_mistral': 228, 'n_tokens_neox': 225, 'n_words': 54}