<commit_before>class AlleleRegistry
  attr_reader :variant

  def initialize(variant_id)
    @variant = Variant.find(variant_id)
  end

  def response
    Rails.cache.fetch(cache_key(variant.id), expires_in: 24.hours) do
      if hgvs = HgvsExpression.allele_registry_hgvs(variant)
        make_request(hgvs)
      else
        {}
      end
    end
  end

  private
  def make_request(hgvs)
    Scrapers::Util.make_get_request(allele_registry_url(hgvs))
  rescue StandardError
    {}
  end

  def allele_registry_url(coordinate_string)
    URI.encode("http://reg.test.genome.network/allele?hgvs=#{coordinate_string}")
  end<commit_msg>Update the URL for the allele registry to the production server<commit_after>class AlleleRegistry
  attr_reader :variant

  def initialize(variant_id)
    @variant = Variant.find(variant_id)
  end

  def response
    Rails.cache.fetch(cache_key(variant.id), expires_in: 24.hours) do
      if hgvs = HgvsExpression.allele_registry_hgvs(variant)
        make_request(hgvs)
      else
        {}
      end
    end
  end

  private
  def make_request(hgvs)
    Scrapers::Util.make_get_request(allele_registry_url(hgvs))
  rescue StandardError
    {}
  end

  def allele_registry_url(coordinate_string)
    URI.encode("http://reg.genome.network/allele?hgvs=#{coordinate_string}")
  end
{'fraction_non_alphanumeric': 0.08897338403041825, 'fraction_numerical': 0.003041825095057034, 'mean_word_length': 3.7, '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': '2462652', 'n_tokens_mistral': 470, 'n_tokens_neox': 436, 'n_words': 77}