<commit_before>'use strict';

var desktop = {
  'browserName': 'chrome',
  'chromeOptions' : {
    args: [
      '--lang=en',
      '--window-size=1024,800'
    ]
  },
};

var mobile = {
  'browserName': 'chrome',
  'chromeOptions' : {
    args: [
      '--lang=en',
      '--window-size=350,650'
    ]
  },
};

var capabilities = [desktop, mobile];
// only desktop
// capabilities = [desktop];
// only mobile
// capabilities = [mobile];

var gulpConfig = require(__dirname + '/../gulpfile').config;

var sessionPages = require(__dirname + '/e2e/pages/session'),
    communityPages = require(__dirname + '/e2e/pages/community'),
    projectPages = require(__dirname + '/e2e/pages/project');

exports.config = {

  // Sometimes Selenium Webdriver gets stuck, and directly connecting to browsers work
  //directConnect: true,

  specs: [
    'e2e/**/*.js'
  ],

  multiCapabilities: capabilities,

  baseUrl: 'http://' + gulpConfig.serverTest.host + ':' + gulpConfig.serverTest.port + '/',

  framework: 'jasmine2',

  suites: {
    session: 'e2e/session.js',
    frontpage: 'e2e/frontpage.js',
    core: 'e2e/core/*.js',
    participant: 'e2e/participant/*.js',
    guest: 'e2e/guest/*.js',
    invite: 'e2e/core/invite.js'
  },

  onPrepare: function() {
    var registerPage = new sessionPages.Register(),
        loginPage = new sessionPages.Login(),
        newCommunityPage = new communityPages.NewCommunityPage(),
        projectsPage = new projectPages.ProjectsPage(),
        newProjectPage = new projectPages.NewProjectPage();<commit_msg>Revert "Protractor default timeouts should be ok in Travis"<commit_after>'use strict';

var desktop = {
  'browserName': 'chrome',
  'chromeOptions' : {
    args: [
      '--lang=en',
      '--window-size=1024,800'
    ]
  },
};

var mobile = {
  'browserName': 'chrome',
  'chromeOptions' : {
    args: [
      '--lang=en',
      '--window-size=350,650'
    ]
  },
};

var capabilities = [desktop, mobile];
// only desktop
// capabilities = [desktop];
// only mobile
// capabilities = [mobile];

var gulpConfig = require(__dirname + '/../gulpfile').config;

var sessionPages = require(__dirname + '/e2e/pages/session'),
    communityPages = require(__dirname + '/e2e/pages/community'),
    projectPages = require(__dirname + '/e2e/pages/project');

exports.config = {
  allScriptsTimeout: 30000,

  // Sometimes Selenium Webdriver gets stuck, and directly connecting to browsers work
  //directConnect: true,

  specs: [
    'e2e/**/*.js'
  ],

  multiCapabilities: capabilities,

  baseUrl: 'http://' + gulpConfig.serverTest.host + ':' + gulpConfig.serverTest.port + '/',

  framework: 'jasmine2',

  jasmineNodeOpts: {
    defaultTimeoutInterval: 60000
  },

  suites: {
    session: 'e2e/session.js',
    frontpage: 'e2e/frontpage.js',
    core: 'e2e/core/*.js',
    participant: 'e2e/participant/*.js',
    guest: 'e2e/guest/*.js',
    invite: 'e2e/core/invite.js'
  },

  onPrepare: function() {
    var registerPage = new sessionPages.Register(),
        loginPage = new sessionPages.Login(),
        newCommunityPage = new communityPages.NewCommunityPage(),
        projectsPage = new projectPages.ProjectsPage(),
        newProjectPage = new projectPages.NewProjectPage();
{'fraction_non_alphanumeric': 0.16207003408738765, 'fraction_numerical': 0.017973349860551595, 'mean_word_length': 3.1759379042690816, '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': '3480113', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1052, 'n_words': 210}