<commit_before>/* eslint-disable */
import moment from 'moment';
RegExp.escape = function(str) {
  return (str+'').replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
}

module.exports = function() {
  this.Given(/^I am logged in$/, function () {
    browser.url('http://localhost:3000/join');
    browser.waitForExist('input[name="email"]', 2000);
    browser.setValue('input[name="email"]', '<EMAIL>');
    browser.setValue('input[name="password"]', '<PASSWORD>');
    browser.setValue('input[name="confirm"]', '<PASSWORD>');

    browser.waitForExist('button[type="submit"]', 2000);
    browser.click('button[type="submit"]');

    browser.waitUntil(function () {
      return browser.getText('.user-menu .menu-parent') === 'REGINOLD'
    }, 5000, 'Not logged in');
  });

  this.Given(/^I am logged out$/, function () {
    browser.waitForExist('.user-menu .menu-parent');
    browser.moveToObject('.user-menu .menu-parent');
    browser.waitForExist('.menu-logout', 2000);
    browser.click('.menu-logout');

    browser.waitUntil(function () {
      return browser.getText('.user-menu .menu-parent') === 'SIGNUP/IN'
    }, 5000, 'Still logged in');
  });<commit_msg>Add comments to maybe fix broken logout test.<commit_after>/* eslint-disable */
import moment from 'moment';
RegExp.escape = function(str) {
  return (str+'').replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
}

module.exports = function() {
  this.Given(/^I am logged in$/, function () {
    browser.url('http://localhost:3000/join');
    browser.waitForExist('input[name="email"]', 2000);
    browser.setValue('input[name="email"]', '<EMAIL>');
    browser.setValue('input[name="password"]', '<PASSWORD>');
    browser.setValue('input[name="confirm"]', 'letme1n3');

    browser.waitForExist('button[type="submit"]', 2000);
    browser.click('button[type="submit"]');

    browser.waitUntil(function () {
      return browser.getText('.user-menu .menu-parent') === 'REGINOLD'
    }, 5000, 'Not logged in');
  });

  this.Given(/^I am logged out$/, function () {
    // server.call('logout');
    // browser.pause(100);
    browser.waitForExist('.user-menu .menu-parent');
    browser.moveToObject('.user-menu .menu-parent');
    browser.waitForExist('.menu-logout', 2000);
    browser.click('.menu-logout');

    browser.waitUntil(function () {
      return browser.getText('.user-menu .menu-parent') === 'SIGNUP/IN'
    }, 5000, 'Still logged in');
  });
{'fraction_non_alphanumeric': 0.22872561228725613, 'fraction_numerical': 0.022000830220008302, 'mean_word_length': 4.031315240083507, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '3619883', 'n_tokens_mistral': 836, 'n_tokens_neox': 775, 'n_words': 127}