<commit_before>/*global browser:false, element:false, by:false */
'use strict';

var Concept = require('./concept/concept-page');

function Taxonomy(id){
    this.id = id;
    this.elements = element(by.id('presentation-tree')).all(by.css('.angular-ui-tree-node'));
}

Taxonomy.prototype.visitPage = function(){
    browser.get('/' + this.id);
};

Taxonomy.prototype.createConcept = function(conceptName){
    var input = element(by.model('conceptName'));
    input.clear();
    input.sendKeys(conceptName);
    var createConceptBtn = element.all(by.repeater('match in matches track by $index')).last();
    createConceptBtn.click();
    this.conceptName = element(by.id('concept')).element(by.binding('concept.Name')).getText();
    this.conceptLabel = element(by.model('conceptCopy.Label')).getAttribute('value');
};

Taxonomy.prototype.getConcept = function(conceptName){
    return new Concept(this.id, conceptName);
};

module.exports = Taxonomy;<commit_msg>added concepts page to taxonomy page.<commit_after>/*global browser:false, element:false, by:false */
'use strict';

var Concepts = require('./concepts/concepts-page');
var Concept = require('./concept/concept-page');

function Taxonomy(id){
    this.id = id;
    this.concepts = new Concepts(this.id);
    this.elements = element(by.id('presentation-tree')).all(by.css('.angular-ui-tree-node'));
}

Taxonomy.prototype.visitPage = function(){
    browser.get('/' + this.id);
};

Taxonomy.prototype.createConcept = function(conceptName){
    var input = element(by.model('conceptName'));
    input.clear();
    input.sendKeys(conceptName);
    var createConceptBtn = element.all(by.repeater('match in matches track by $index')).last();
    createConceptBtn.click();
    this.conceptName = element(by.id('concept')).element(by.binding('concept.Name')).getText();
    this.conceptLabel = element(by.model('conceptCopy.Label')).getAttribute('value');
};

Taxonomy.prototype.getConcepts = function(){
    return this.concepts;
};

Taxonomy.prototype.getConcept = function(conceptName){
    return new Concept(this.id, conceptName);
};

module.exports = Taxonomy;
{'fraction_non_alphanumeric': 0.1721698113207547, 'fraction_numerical': 0.0, 'mean_word_length': 5.008498583569405, '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': '956827', 'n_tokens_mistral': 671, 'n_tokens_neox': 647, 'n_words': 108}