<commit_before>module.exports.accessFromChromeExtension = function () {
  browser.get('/?extId=' + browser.params.testTrelloExtId);
  let EC = protractor.ExpectedConditions;
  let continueButton = element(by.css('.continue-to-choices--button'));
  browser.wait(EC.visibilityOf(continueButton), 2500).then(function () {
      let EC = protractor.ExpectedConditions;
      let continueButton = element(by.css('.continue-to-choices--button'));
      browser.wait(EC.visibilityOf(continueButton), 10000);
      browser.actions().mouseMove(continueButton).click().perform();
      browser.driver.sleep(1000);
      protractor.selectWindow.selectWindow(1);

      EC = protractor.ExpectedConditions;
      let acceptButton = element(by.css('#surface form a.button.primary'));
      browser.wait(EC.visibilityOf(acceptButton), 10000);
      browser.actions().mouseMove(acceptButton).click().perform();

      EC = protractor.ExpectedConditions;
      let submitButton = element(by.css('input#user'));
      browser.wait(EC.visibilityOf(submitButton), 10000);

      let loginButton = element(by.css('input#login'));
      element(by.css('input#user')).sendKeys(browser.params.testTrelloUsername);
      element(by.css('input#password')).sendKeys(browser.params.testTrelloPassword);
      browser.actions().mouseMove(loginButton).click().perform().then(function () {
        let EC = protractor.ExpectedConditions;
        let approveButton = element(by.css("input.primary[name='approve']"));
        browser.wait(EC.visibilityOf(approveButton), 10000);
        browser.actions().mouseMove(approveButton).click().perform();
        protractor.selectWindow.selectWindow(0);
      });
  }, function () {
    return;<commit_msg>Accept ENV variables in e2e tests<commit_after>module.exports.accessFromChromeExtension = function () {
  browser.get('/?extId=' + (process.env.TEST_TRELLO_EXTID || browser.params.testTrelloExtId));
  let EC = protractor.ExpectedConditions;
  let continueButton = element(by.css('.continue-to-choices--button'));
  browser.wait(EC.visibilityOf(continueButton), 2500).then(function () {
      let EC = protractor.ExpectedConditions;
      let continueButton = element(by.css('.continue-to-choices--button'));
      browser.wait(EC.visibilityOf(continueButton), 10000);
      browser.actions().mouseMove(continueButton).click().perform();
      browser.driver.sleep(1000);
      protractor.selectWindow.selectWindow(1);

      EC = protractor.ExpectedConditions;
      let acceptButton = element(by.css('#surface form a.button.primary'));
      browser.wait(EC.visibilityOf(acceptButton), 10000);
      browser.actions().mouseMove(acceptButton).click().perform();

      EC = protractor.ExpectedConditions;
      let submitButton = element(by.css('input#user'));
      browser.wait(EC.visibilityOf(submitButton), 10000);

      let loginButton = element(by.css('input#login'));
      element(by.css('input#user')).sendKeys(process.env.TEST_TRELLO_USERNAME || browser.params.testTrelloUsername);
      element(by.css('input#password')).sendKeys(process.env.TEST_TRELLO_PASSWORD || browser.params.testTrelloPassword);
      browser.actions().mouseMove(loginButton).click().perform().then(function () {
        let EC = protractor.ExpectedConditions;
        let approveButton = element(by.css("input.primary[name='approve']"));
        browser.wait(EC.visibilityOf(approveButton), 10000);
        browser.actions().mouseMove(approveButton).click().perform();
        protractor.selectWindow.selectWindow(0);
      });
  }, function () {
    return;
{'fraction_non_alphanumeric': 0.15164279696714406, 'fraction_numerical': 0.017130019657399607, 'mean_word_length': 4.46319018404908, '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': '5208198', 'n_tokens_mistral': 1079, 'n_tokens_neox': 998, 'n_words': 123}