<commit_before>class EvidenceItemPresenter
  def initialize(item, render_as_single = false)
    @item = item
    @render_as_single = render_as_single
  end

  def as_json(options = {})
    {
        id: @item.id,
        text: @item.text,
        disease: @item.disease.name,
        citation: @item.source.description,
        source_url: source_url,
        drug: @item.drug.name,
        rating: @item.rating,
        evidence_level: @item.evidence_level.level,
        evidence_type: @item.evidence_type.evidence_type,
        clinical_significance: @item.clinical_significance,
        evidence_direction: @item.evidence_direction,
        variant_origin: @item.variant_origin ? @item.variant_origin.origin : nil
    }.merge(errors)
      .merge(last_modified)
  end

  private
  def source_url
    "http://www.ncbi.nlm.nih.gov/pubmed/#{@item.source.pubmed_id}"
  end

  def errors<commit_msg>include hgvs in response<commit_after>class EvidenceItemPresenter
  def initialize(item, render_as_single = false)
    @item = item
    @render_as_single = render_as_single
  end

  def as_json(options = {})
    {
        id: @item.id,
        text: @item.text,
        disease: @item.disease.name,
        citation: @item.source.description,
        source_url: source_url,
        drug: @item.drug.name,
        rating: @item.rating,
        evidence_level: @item.evidence_level.level,
        evidence_type: @item.evidence_type.evidence_type,
        clinical_significance: @item.clinical_significance,
        evidence_direction: @item.evidence_direction,
        variant_hgvs: @item.variant_hgvs,
        variant_origin: @item.variant_origin ? @item.variant_origin.origin : nil
    }.merge(errors)
      .merge(last_modified)
  end

  private
  def source_url
    "http://www.ncbi.nlm.nih.gov/pubmed/#{@item.source.pubmed_id}"
  end

  def errors
{'fraction_non_alphanumeric': 0.10600324499729584, 'fraction_numerical': 0.0, 'mean_word_length': 2.9445628997867805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6069902', 'n_tokens_mistral': 625, 'n_tokens_neox': 588, 'n_words': 102}