<commit_before>require 'bio-ucsc'
describe "Bio::Ucsc::Hg18::CnpSharp2" do 

  describe "#find_by_interval" do
    context "given range chr1:1-2,000,000" do
      it "returns an array of results" do
        Bio::Ucsc::Hg18::DBConnection.default
        Bio::Ucsc::Hg18::DBConnection.connect
        i = Bio::GenomicInterval.parse("chr1:1-2,000,000")
        Bio::Ucsc::Hg18::CnpSharp2.find_by_interval(i).should have(1).items
      end

      it "returns an array of results with column accessors" do
        Bio::Ucsc::Hg18::DBConnection.default
        Bio::Ucsc::Hg18::DBConnection.connect
        i = Bio::GenomicInterval.parse("chr1:1-2,000,000")
        r = Bio::Ucsc::Hg18::CnpSharp2.find_by_interval(i)
        r[0].chrom.should == "chr1"
      end
    end
  end

end<commit_msg>modified:   spec/hg18/cnpsharp2_spec.rb<commit_after>require 'bio-ucsc'
describe "Bio::Ucsc::Hg18::CnpSharp2" do 

  describe "#find_by_interval" do
    context "given range chr1:1-2,000,000" do
      it "returns an array of results" do
        Bio::Ucsc::Hg18::DBConnection.default
        Bio::Ucsc::Hg18::DBConnection.connect
        i = Bio::GenomicInterval.parse("chr1:1-2,000,000")
        Bio::Ucsc::Hg18::CnpSharp2.find_all_by_interval(i).should have(1).items
      end

      it "returns an array of results with column accessors" do
        Bio::Ucsc::Hg18::DBConnection.default
        Bio::Ucsc::Hg18::DBConnection.connect
        i = Bio::GenomicInterval.parse("chr1:1-2,000,000")
        r = Bio::Ucsc::Hg18::CnpSharp2.find_by_interval(i)
        r.chrom.should == "chr1"
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.1386633354153654, 'fraction_numerical': 0.059962523422860715, 'mean_word_length': 3.3651226158038146, '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': '6616970', 'n_tokens_mistral': 649, 'n_tokens_neox': 574, 'n_words': 98}