<commit_before>'use strict';

/**
 * @description
 * <strong> How to use this? </strong>
 *
 * <pre>
 *     <code>
 *         TabNavigation( $('.buttons-group.sections') ).goTo( 'Topology' );
 *     </code>
 * </pre>
 * @param base base element for component
 * @constructor
 */

module.exports = function TabNavigation(base) {

    return {
        getSections : function(){
            return base.all(by.css('button'));
        },
        goTo : function( sectionName ){
            var sections = this.getSections().filter(function (section) {
                return section.getText().then(function (text) {
                    return text === sectionName;<commit_msg>fix tab navigation component. we switched from buttons to anchor elements.<commit_after>'use strict';

/**
 * @description
 * <strong> How to use this? </strong>
 *
 * <pre>
 *     <code>
 *         TabNavigation( $('.buttons-group.sections') ).goTo( 'Topology' );
 *     </code>
 * </pre>
 * @param base base element for component
 * @constructor
 */

module.exports = function TabNavigation(base) {

    return {
        getSections : function(){
            return base.all(by.css('a'));
        },
        goTo : function( sectionName ){
            var sections = this.getSections().filter(function (section) {
                return section.getText().then(function (text) {
                    return text === sectionName;
{'fraction_non_alphanumeric': 0.14714285714285713, 'fraction_numerical': 0.0, 'mean_word_length': 2.3597122302158273, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '3094236', 'n_tokens_mistral': 386, 'n_tokens_neox': 376, 'n_words': 99}