<commit_before>'use strict';

function NewLexProjectPage() {
  var mockUpload = require('../../../bellows/pages/mockUploadElement.js');
  var modal      = require('./lexModals.js');
  var _this = this;
  
  this.get = function() {
    browser.get('/app/new-lexicon-project');
  };
  
  // form controls
  this.noticeList = element.all(by.repeater('notice in notices()'));
  this.firstNoticeCloseButton = this.noticeList.first().element(by.buttonText('×'));
  this.newLexProjectForm = element('form#newLexProjectForm');
  this.progressIndicatorStep3Label = element(by.binding('progressIndicatorStep3Label'));
  this.backButton = element(by.id('backButton'));
  this.nextButton = element(by.id('nextButton'));
  this.expectFormIsValid = function expectFormIsValid() {
    expect(_this.nextButton.getAttribute('class')).toContain('btn-success');
  };
  this.expectFormIsNotValid = function expectFormIsNotValid() {
    expect(_this.nextButton.getAttribute('class')).not.toContain('btn-success');
  };
  this.formStatus = element(by.id('form-status'));
  this.formStatus.expectHasNoError = function expectHasNoError() {
    expect(_this.formStatus.getAttribute('class')).not.toContain('alert');
  };
  this.formStatus.expectContainsError = function expectContainsError(partialMsg) {
    if (! partialMsg) partialMsg = '';
    expect(_this.formStatus.getAttribute('class')).toContain('alert-error');
    expect(_this.formStatus.getText()).toContain(partialMsg);
  };
  
  // step 1: project name
  this.namePage = {};
  this.namePage.projectNameInput = element(by.model('newProject.projectName'));
  this.namePage.projectCodeInput = element(by.model('newProject.projectCode'));
  this.namePage.projectCodeLoading = element(by.id('projectCodeLoading'));
  this.namePage.projectCodeExists = element(by.id('projectCodeExists'));<commit_msg>fix failing tests after commit "move lexicon-new-project folder as subfolder of lexicon" 99a6041301aaa7328fc4af5f8a7ee7156eee1ad2<commit_after>'use strict';

function NewLexProjectPage() {
  var mockUpload = require('../../../bellows/pages/mockUploadElement.js');
  var modal      = require('./lexModals.js');
  var _this = this;
  
  this.get = function() {
    browser.get('/app/lexicon/new');
  };
  
  // form controls
  this.noticeList = element.all(by.repeater('notice in notices()'));
  this.firstNoticeCloseButton = this.noticeList.first().element(by.buttonText('×'));
  this.newLexProjectForm = element('form#newLexProjectForm');
  this.progressIndicatorStep3Label = element(by.binding('progressIndicatorStep3Label'));
  this.backButton = element(by.id('backButton'));
  this.nextButton = element(by.id('nextButton'));
  this.expectFormIsValid = function expectFormIsValid() {
    expect(_this.nextButton.getAttribute('class')).toContain('btn-success');
  };
  this.expectFormIsNotValid = function expectFormIsNotValid() {
    expect(_this.nextButton.getAttribute('class')).not.toContain('btn-success');
  };
  this.formStatus = element(by.id('form-status'));
  this.formStatus.expectHasNoError = function expectHasNoError() {
    expect(_this.formStatus.getAttribute('class')).not.toContain('alert');
  };
  this.formStatus.expectContainsError = function expectContainsError(partialMsg) {
    if (! partialMsg) partialMsg = '';
    expect(_this.formStatus.getAttribute('class')).toContain('alert-error');
    expect(_this.formStatus.getText()).toContain(partialMsg);
  };
  
  // step 1: project name
  this.namePage = {};
  this.namePage.projectNameInput = element(by.model('newProject.projectName'));
  this.namePage.projectCodeInput = element(by.model('newProject.projectCode'));
  this.namePage.projectCodeLoading = element(by.id('projectCodeLoading'));
  this.namePage.projectCodeExists = element(by.id('projectCodeExists'));
{'fraction_non_alphanumeric': 0.158271474019088, 'fraction_numerical': 0.0076882290562036056, 'mean_word_length': 5.482817869415808, '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': '7657388', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1145, 'n_words': 145}