<commit_before>"use strict";

describe('Read tokens from xml url', function(){
  var url = 'http://services.perseids.org/llt-data/1999.02.0002.2.1.1.xml';
  beforeEach(function() {
    browser.get('/app/index.html');

    element(by.model('query')).sendKeys(url);
    element(by.buttonText('Search')).click();
  });

  it('changes the url', function() {
    // change %3A to : because angular doesn't encode it
    var expectedParameterUrl = encodeURIComponent(url).replace("%3A", ":");
    expect(browser.getCurrentUrl()).toContain("?input=" + expectedParameterUrl);
  });

  xit('displays the data from the given xml', function() {
    expect(element(by.css("token")).getText()).toEqual("Cum");
  });

});
<commit_msg>Some more e2e tests<commit_after>"use strict";

describe('Read tokens from xml url', function(){
  var sentence1Url = 'http://services.perseids.org/llt-data/1999.02.0002.2.1.1.xml';
  var sentence2Url = 'http://services.perseids.org/llt-data/1999.02.0002.2.1.2.xml';
  beforeEach(function() {
    browser.get('/app/#/staging');

  });

  describe('Sentence 1', function() {
    beforeEach(function() {
      element(by.model('query')).sendKeys(sentence1Url);
      element(by.buttonText('Search')).click();
    });

    it('changes the url', function() {
      // change %3A to : because angular doesn't encode it
      var expectedParameterUrl = encodeURIComponent(sentence1Url).replace("%3A", ":");
      expect(browser.getCurrentUrl()).toContain("?treebank=" + expectedParameterUrl);
    });

    it('displays the data from the given xml', function() {
      expect(element(by.css("token")).getText()).toEqual("Cum");
    });
  });

  describe('Sentence 2', function() {
    beforeEach(function() {
      element(by.model('query')).sendKeys(sentence2Url + '\n');
    });

    it('displays the data from the given xml', function() {
      expect(element(by.css("token")).getText()).toEqual("Coniurandi");
    });
 });
});

{'fraction_non_alphanumeric': 0.19650205761316872, 'fraction_numerical': 0.026234567901234566, 'mean_word_length': 4.065104166666667, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 3, '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': '5506398', 'n_tokens_mistral': 647, 'n_tokens_neox': 613, 'n_words': 107}