<commit_before>/takes in variable for type of claim (drug/gene/interaction)
/lists all claims in summary form (so renders list of claim summary partial)
/similar to _drug.html.haml or _gene.html.haml but has variable claim type

- if defined? drug
  %ul(class="result-list" id="list-results")
    -drug.sorted_claims.each do |drug_claim|
      %li(class="#{drug_claim.source.source_type.type} claim-panel gene-drug" data-category="#{drug_claim.source.source_type.type}" data-name="#{drug_claim.source.source_type.display_name}" onclick="location.href='/drug_claims/#{drug_claim.source.source_db_name}/#{drug_claim.name}';")
        =render partial: 'drug_claims/drug_claim_summary', locals: { drug_claim: DrugClaimPresenter.new(drug_claim) }
- elsif defined? gene
  %ul(class="result-list" id="list-results")
    -gene.sorted_claims.each do |gene_claim|
      %li(class="#{gene_claim.source.source_type.type} claim-panel gene-drug" data-category="#{gene_claim.source.source_type.type}" data-name="#{gene_claim.source.source_type.display_name}" onclick="location.href='/gene_claims/#{gene_claim.source.source_db_name}/#{gene_claim.name}';")
        =render partial: 'gene_claims/gene_claim_summary', locals: { gene_claim: GeneClaimPresenter.new(gene_claim) }
- else
  %ul(class="result-list" id="list-results")
    -interaction.interaction_claims.sort_by{ |i| [-i.interaction_claim_attributes.length] }.each do |interaction_claim|
      %li(class="#{interaction_claim.source.source_type.type} claim-panel" data-category="#{interaction_claim.source.source_type.type}" data-name="#{interaction_claim.source.source_type.display_name}" onclick="location.href='/interaction_claims/#{interaction_claim.id}';")
        =render partial: 'interaction_claims/interaction_claim_summary', locals: { interaction_claim: InteractionClaimPresenter.new(interaction_claim) }

:css
  li.claim-panel.gene-drug:hover {
    background-color:rgba(220, 220, 220, 1);
    cursor: pointer;
  }<commit_msg>fix hover color interaction claims tab<commit_after>/takes in variable for type of claim (drug/gene/interaction)
/lists all claims in summary form (so renders list of claim summary partial)
/similar to _drug.html.haml or _gene.html.haml but has variable claim type

- if defined? drug
  %ul(class="result-list" id="list-results")
    -drug.sorted_claims.each do |drug_claim|
      %li(class="#{drug_claim.source.source_type.type} claim-panel gene-drug" data-category="#{drug_claim.source.source_type.type}" data-name="#{drug_claim.source.source_type.display_name}" onclick="location.href='/drug_claims/#{drug_claim.source.source_db_name}/#{drug_claim.name}';")
        =render partial: 'drug_claims/drug_claim_summary', locals: { drug_claim: DrugClaimPresenter.new(drug_claim) }
- elsif defined? gene
  %ul(class="result-list" id="list-results")
    -gene.sorted_claims.each do |gene_claim|
      %li(class="#{gene_claim.source.source_type.type} claim-panel gene-drug" data-category="#{gene_claim.source.source_type.type}" data-name="#{gene_claim.source.source_type.display_name}" onclick="location.href='/gene_claims/#{gene_claim.source.source_db_name}/#{gene_claim.name}';")
        =render partial: 'gene_claims/gene_claim_summary', locals: { gene_claim: GeneClaimPresenter.new(gene_claim) }
- else
  %ul(class="result-list" id="list-results")
    -interaction.interaction_claims.sort_by{ |i| [-i.interaction_claim_attributes.length] }.each do |interaction_claim|
      %li(class="#{interaction_claim.source.source_type.type} claim-panel" data-category="#{interaction_claim.source.source_type.type}" data-name="#{interaction_claim.source.source_type.display_name}" onclick="location.href='/interaction_claims/#{interaction_claim.id}';")
        =render partial: 'interaction_claims/interaction_claim_summary', locals: { interaction_claim: InteractionClaimPresenter.new(interaction_claim) }

:css
  li.claim-panel:hover {
    background-color:rgba(220, 220, 220, 1);
    cursor: pointer;
  }
{'fraction_non_alphanumeric': 0.14605892722236213, 'fraction_numerical': 0.005036514731805591, 'mean_word_length': 6.017667844522968, 'pattern_counts': {'":': 0, '<': 3, '<?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': '234777', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1284, 'n_words': 203}