<commit_before>(function() {
  'use strict';

  //----------------------------------------------------------------------------

  var _getId = function(id) {
    return element(by.id(id));
  };

  var _getLink = function(text) {
    return element(by.linkText(text));
  };

  var _getBinding = function(binding) {
    return element(by.binding(binding));
  };

  var _getBindingAll = function(binding) {
    return element.all(by.binding(binding));
  };

  var _getModel = function(model) {
    return element(by.model(model));
  };

  var _getRepeater = function(repeater) {
    return element.all(by.repeater(repeater));
  };

  //----------------------------------------------------------------------------

  var _listAndSearch = {
    options: {
      optionsButton:         function() { return _getId('optionsBtn'); },
      // optionsButtonLabel:    function() { return _getBindingAll('optionsBtnLabel').get(0); },

      filterButton:          function() { return _getId('filterBtn'); },
      // filterButtonLabel:     function() { return _getBindingAll('filterBtnLabel').get(0); },

      pageSizeInput:         function() { return _getModel('pageSize'); },
      pageSizeMessage:       function() { return _getId('pageSizeMessage'); }
    }
  };

  //----------------------------------------------------------------------------

  // Page Object
  module.exports = {

    get: function() {
      return browser.get('#/bookmarks');
    },

    on: {

      list: {
        links: {
          search:  function() { return _getLink('Search'); },
          new:     function() { return _getLink('New'); }
        },

        options: _listAndSearch.options
      },

      search: {
        links: {
          backToList: function() { return _getLink('All Bookmarks'); }
        },

        options: _listAndSearch.options
      },

      table: {
        filterTexts:        function() { return _getBindingAll('filter.search'); },
        filterInput:        function() { return _getModel('filter.search'); },
        filterClearButton:  function() { return _getId('filterClearButton'); },
        repeater:           function() { return _getRepeater('bookmark in result.data'); }
      },

      form: {
        title: function() { return _getBinding('title'); },

        inputs: {
          name:          function() { return _getModel('bookmarks.name'); },
          url:           function() { return _getModel('bookmarks.url'); },
          description:   function() { return _getModel('bookmarks.description'); }
        },

        buttons: {
          cancelLink:      function() { return _getId('cancelLinkBtn'); },
          save:            function() { return _getId('saveBtn'); },
          deleteConfirm:   function() { return _getId('deleteConfirmBtn'); },<commit_msg>bookmarks e2e page object updated #17<commit_after>(function() {
  'use strict';

  //----------------------------------------------------------------------------

  var _getId = function(id) {
    return element(by.id(id));
  };

  var _getLink = function(text) {
    return element(by.linkText(text));
  };

  var _getBinding = function(binding) {
    return element(by.binding(binding));
  };

  var _getBindingAll = function(binding) {
    return element.all(by.binding(binding));
  };

  var _getModel = function(model) {
    return element(by.model(model));
  };

  var _getRepeater = function(repeater) {
    return element.all(by.repeater(repeater));
  };

  //----------------------------------------------------------------------------

  var _listAndSearch = {
    options: {
      optionsButton:         function() { return _getId('optionsBtn'); },
      // optionsButtonLabel:    function() { return _getBindingAll('optionsBtnLabel').get(0); },

      filterButton:          function() { return _getId('filterBtn'); },
      // filterButtonLabel:     function() { return _getBindingAll('filterBtnLabel').get(0); },

      pageSizeInput:         function() { return _getModel('pageSize'); },
      pageSizeMessage:       function() { return _getId('pageSizeMessage'); }
    }
  };

  //----------------------------------------------------------------------------

  // Page Object
  module.exports = {

    get: function() {
      return browser.get('#/bookmarks');
    },

    on: {

      list: {
        links: {
          search:  function() { return _getLink('Search'); },
          new:     function() { return _getLink('New'); }
        },

        options: _listAndSearch.options
      },

      search: {
        links: {
          backToList: function() { return _getLink('All Bookmarks'); }
        },

        searchInput: function() { return _getModel('searchName'); },

        options: _listAndSearch.options
      },

      table: {
        filterTexts:        function() { return _getBindingAll('filter.search'); },
        filterInput:        function() { return _getModel('filter.search'); },
        filterClearButton:  function() { return _getId('filterClearButton'); },
        repeater:           function() { return _getRepeater('bookmark in result.data'); }
      },

      form: {
        title: function() { return _getBinding('title'); },

        inputs: {
          name:          function() { return _getModel('bookmarks.name'); },
          url:           function() { return _getModel('bookmarks.url'); },
          description:   function() { return _getModel('bookmarks.description'); }
        },

        buttons: {
          cancelLink:      function() { return _getId('cancelLinkBtn'); },
          save:            function() { return _getId('saveBtn'); },
          deleteConfirm:   function() { return _getId('deleteConfirmBtn'); },
{'fraction_non_alphanumeric': 0.21662557238464247, 'fraction_numerical': 0.0012328284607256077, 'mean_word_length': 1.843765648472709, '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': '662783', 'n_tokens_mistral': 1507, 'n_tokens_neox': 1476, 'n_words': 287}