<commit_before>require 'user_agent'

shared_examples_for "Internet Explorer browser" do
  it "should return 'Internet Explorer' as its browser" do
    @useragent.browser.should == "Internet Explorer"
  end

  it "should return 'Windows' as its platform" do
    @useragent.platform.should == "Windows"
  end
end

describe "UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" do
  before do
    @useragent = UserAgent.parse("Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko")
  end

  it_should_behave_like "Internet Explorer browser"

  it "should return '11.0' as its version" do
    @useragent.version.should == "11.0"
  end

  it "should return 'Windows 8.1' as its os" do<commit_msg>Test another example IE11 UA<commit_after>require 'user_agent'

shared_examples_for "Internet Explorer browser" do
  it "should return 'Internet Explorer' as its browser" do
    @useragent.browser.should == "Internet Explorer"
  end

  it "should return 'Windows' as its platform" do
    @useragent.platform.should == "Windows"
  end
end

describe "UserAgent: Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko" do
  before do
    @useragent = UserAgent.parse("Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko")
  end

  it_should_behave_like "Internet Explorer browser"

  it "should return '11.0' as its version" do
    @useragent.version.should == "11.0"
  end

  it "should return 'Windows 8.1' as its os" do
    @useragent.os.should == "Windows 7"
  end

  it "should have a higher version number than IE10" do
    @useragent.version.should >
      UserAgent.parse("Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)").version
  end
end

describe "UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" do
  before do
    @useragent = UserAgent.parse("Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko")
  end

  it_should_behave_like "Internet Explorer browser"

  it "should return '11.0' as its version" do
    @useragent.version.should == "11.0"
  end

  it "should return 'Windows 8.1' as its os" do
{'fraction_non_alphanumeric': 0.11659614480488951, 'fraction_numerical': 0.047014574518100614, 'mean_word_length': 3.7079646017699117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4734093', 'n_tokens_mistral': 826, 'n_tokens_neox': 746, 'n_words': 237}