<commit_before>module.exports = function () {
  this.Before(function (done) {

    var client = this.client;
    var server = this.server;

    this.AuthenticationHelper = {

      login: function () {
        return client.waitForExist('a#login-sign-in-link').
          click('a#login-sign-in-link').
          setValue('#login-email', '<EMAIL>').
          setValue('#login-password', '<PASSWORD>').
          click('.login-button-form-submit').
          waitForExist('#login-name-link');
      },

      logout: function () {
        return client.executeAsync(function (done) {
          Meteor.logout(done);
        });
      },

      createAccount: function (profile) {<commit_msg>making sure we are on a page before logging in<commit_after>module.exports = function () {
  this.Before(function (done) {

    var client = this.client;
    var server = this.server;

    this.AuthenticationHelper = {

      login: function () {
        return client.
          url(process.env.ROOT_URL).
          waitForExist('a#login-sign-in-link').
          click('a#login-sign-in-link').
          setValue('#login-email', '<EMAIL>').
          setValue('#login-password', '<PASSWORD>').
          click('.login-button-form-submit').
          waitForExist('#login-name-link');
      },

      logout: function () {
        return client.executeAsync(function (done) {
          Meteor.logout(done);
        });
      },

      createAccount: function (profile) {
{'fraction_non_alphanumeric': 0.1540041067761807, 'fraction_numerical': 0.0, 'mean_word_length': 2.2561247216035634, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5828848', 'n_tokens_mistral': 428, 'n_tokens_neox': 415, 'n_words': 73}