<commit_before>// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts

const { SpecReporter } = require('jasmine-spec-reporter');

const config = {
  allScriptsTimeout: 11000,
  specs: [
    './src/**/*.e2e-spec.ts'
  ],
  directConnect: true,
  baseUrl: 'http://localhost:4200/',
  framework: 'jasmine',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 30000,
    print: function() {}
  },
  onPrepare() {
    require('ts-node').register({
      project: require('path').join(__dirname, './tsconfig.e2e.json')
    });
    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
  }
};

if (process.env.TRAVIS) {

  var capabilities = [
    // [platform, browsername, version]
    ['macOS 10.12', 'chrome', '59.0'],
    ['macOS 10.12', 'chrome', '58.0'],
    ['macOS 10.12', 'chrome', '49.0'],
    ['Windows 10', 'MicrosoftEdge', '14.14393'],
    ['Windows 10', 'MicrosoftEdge', '13.10586'],
    // TODO Check why getting window height does not work in android any more
    // ['Linux', 'android', '6.0']
    // TODO Selenium Driver problem for the following
    // ['macOS 10.12', 'safari', '10.0'],
    // ['Windows 10', 'internet explorer', '11.103'],
    // ['Windows 10', 'firefox', '50.0'],
    // TODO Problem calculating the target position in tests
    // ['OS X 10.10', 'iphone', '10.0'],
    // ['OS X 10.10', 'iphone', '9.3']
  ];

  // Override the baseUrl, as the port is a different one
  config.baseUrl = 'http://localhost:8000/';
  config.multiCapabilities = capabilities.map(function (capability) {
    return {
      browserName: capability[1],
      platform: capability[0],
      version: capability[2],
      shardTestFiles: true,
      name: 'NgxPageScroll',
      'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
    }
  });
  config.sauceUser = process.env.SAUCE_USERNAME;
  config.sauceKey = process.env.SAUCE_ACCESS_KEY;
  config.sauceBuild = 'travis-build#' + process.env.TRAVIS_BUILD_NUMBER;
} else {
  config.multiCapabilities = [{browserName: 'chrome'}];
}

exports.config = config;
<commit_msg>Adjust protractor capability settings<commit_after>// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts

const { SpecReporter } = require('jasmine-spec-reporter');

const config = {
  allScriptsTimeout: 11000,
  specs: [
    './src/**/*.e2e-spec.ts'
  ],
  directConnect: false,
  baseUrl: 'http://localhost:4200/',
  framework: 'jasmine',
  jasmineNodeOpts: {
    showColors: true,
    defaultTimeoutInterval: 30000,
    print: function() {}
  },
  onPrepare() {
    require('ts-node').register({
      project: require('path').join(__dirname, './tsconfig.e2e.json')
    });
    jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
  }
};

if (process.env.TRAVIS) {

  var capabilities = [
    // [platform, browsername, version]
    ['macOS 10.12', 'chrome', 'latest'],
    ['macOS 10.12', 'chrome', 'latest-1'],
    ['macOS 10.12', 'chrome', 'latest-2'],
    ['Windows 10', 'MicrosoftEdge', 'latest'],
    ['Windows 10', 'MicrosoftEdge', 'latest-1'],
    // TODO Check why getting window height does not work in android any more
    // ['Linux', 'android', '6.0']
    // TODO Selenium Driver problem for the following
    // ['macOS 10.12', 'safari', '10.0'],
    // ['Windows 10', 'internet explorer', '11.103'],
    // ['Windows 10', 'firefox', '50.0'],
    // TODO Problem calculating the target position in tests
    // ['OS X 10.10', 'iphone', '10.0'],
    // ['OS X 10.10', 'iphone', '9.3']
  ];

  // Override the baseUrl, as the port is a different one
  config.baseUrl = 'http://localhost:8000/';
  config.multiCapabilities = capabilities.map(function (capability) {
    return {
      browserName: capability[1],
      platform: capability[0],
      version: capability[2],
      shardTestFiles: true,
      name: 'NgxPageScroll',
      'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER
    }
  });
  config.sauceUser = process.env.SAUCE_USERNAME;
  config.sauceKey = process.env.SAUCE_ACCESS_KEY;
  config.sauceBuild = 'travis-build#' + process.env.TRAVIS_BUILD_NUMBER;
} else {
  config.multiCapabilities = [{browserName: 'chrome'}];
}

exports.config = config;

{'fraction_non_alphanumeric': 0.1734529560616517, 'fraction_numerical': 0.0395675178283874, 'mean_word_length': 3.4008097165991904, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2721220', 'n_tokens_mistral': 1567, 'n_tokens_neox': 1446, 'n_words': 331}