<commit_before>import {
  protractor, browser, element, by, By, $, $$, ExpectedConditions as EC, ElementFinder,
  ElementArrayFinder
} from 'protractor'
import { AppPage } from '../appPage';
import { pages } from '../page';
import {Element} from "@angular/compiler";

export class BrowsePage extends AppPage {

  //to get the login box locater
  locator() {
    return by.css('app-search > div');
  }

  databaseDropDown() {
    return element(by.css(`.database-chooser > mdl-select >div > span.mdl-select__toggle.material-icons`));
  }

  selectDatabase(databaseName: string) {
    return element(by.cssContainingText('div.mdl-list__item-primary-content', databaseName));
  }
  
  searchBox() {
    return element(by.css('.search-box > form > input'));
  }

  searchButton() {
    return element(by.buttonText('Search'));
  }
  
  resultsPagination() {
    return element(by.css('app-pagination > .container'));
  }

  resultsUri() {
    return element(by.css('.results .result a'));
  }

}

var browsePage = new BrowsePage();
export default browsePage;
pages.addPage(browsePage);<commit_msg>added page object for specifc uri<commit_after>import {
  protractor, browser, element, by, By, $, $$, ExpectedConditions as EC, ElementFinder,
  ElementArrayFinder
} from 'protractor'
import { AppPage } from '../appPage';
import { pages } from '../page';
import {Element} from "@angular/compiler";

export class BrowsePage extends AppPage {

  //to get the login box locater
  locator() {
    return by.css('app-search > div');
  }

  databaseDropDown() {
    return element(by.css(`.database-chooser > mdl-select >div > span.mdl-select__toggle.material-icons`));
  }

  selectDatabase(databaseName: string) {
    return element(by.cssContainingText('div.mdl-list__item-primary-content', databaseName));
  }
  
  searchBox() {
    return element(by.css('.search-box > form > input'));
  }

  searchButton() {
    return element(by.buttonText('Search'));
  }
  
  resultsPagination() {
    return element(by.css('app-pagination > .container'));
  }

  resultsUri() {
    return element(by.css('.results .result a'));
  }

  resultsSpecificUri(uri: string) {
    return element(by.cssContainingText('.results .result a', uri));
  }

}

var browsePage = new BrowsePage();
export default browsePage;
pages.addPage(browsePage);
{'fraction_non_alphanumeric': 0.14853195164075994, 'fraction_numerical': 0.0, 'mean_word_length': 4.026030368763558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '2358388', 'n_tokens_mistral': 745, 'n_tokens_neox': 728, 'n_words': 163}