<commit_before># encoding: utf-8
require_relative '../test_helper'
# let's see how my testing skills go…
class BeaconControllerTest < ActionController::TestCase
  context "Beacon" do
    setup do
      activate_authlogic
      Sidekiq::Client.stubs(:enqueue)
      @user = FactoryGirl.create(:user)
      @snp = FactoryGirl.create(:snp)
      @snp.allele_frequency["A"] = 2
      @controller.send(:reset_session)
    end
    should "be YES" do
      get(:responses, {pos: @snp.position,chrom: @snp.chromosome,allele: "A")
      assert_equal("YES",response.body)
    end
    should "be NO" do
      get(:responses, {pos: @snp.position,chrom: @snp.chromosome,allele: "C")
        assert_equal("NO",response.body)
    end
    should "be NONE" do
      get(:responses, {pos: @snp.position,chrom: @snp.chromosome)
        assert_equal("NONE",response.body)
    end
  end
end
<commit_msg>fixed test, maybe<commit_after># encoding: utf-8
require_relative '../test_helper'
# let's see how my testing skills go…
class BeaconControllerTest < ActionController::TestCase
  context "Beacon" do
    setup do
      activate_authlogic
      Sidekiq::Client.stubs(:enqueue)
      @user = FactoryGirl.create(:user)
      @snp = FactoryGirl.create(:snp)
      @snp.allele_frequency["A"] = 2
      @controller.send(:reset_session)
    end
    should "be YES" do
      get(:responses, {pos: @snp.position,chrom: @snp.chromosome,allele: "A"})
      assert_equal("YES",response.body)
    end
    should "be NO" do
      get(:responses, {pos: @snp.position,chrom: @snp.chromosome,allele: "C"})
        assert_equal("NO",response.body)
    end
    should "be NONE" do
      get(:responses, {pos: @snp.position,chrom: @snp.chromosome})
        assert_equal("NONE",response.body)
    end
  end
end

{'fraction_non_alphanumeric': 0.13438735177865613, 'fraction_numerical': 0.002258610954263128, 'mean_word_length': 3.4189526184538654, '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': '7379778', 'n_tokens_mistral': 628, 'n_tokens_neox': 593, 'n_words': 130}