<commit_before>var fs = require("fs");

module.exports = function(config) {

  // Use ENV vars on Travis and sauce.json locally to get credentials
  if (! process.env.SAUCE_USERNAME) {
    if (! fs.existsSync("sauce.json")) {
      console.log("Create a sauce.json with your credentials.");
      process.exit(1);
    } else {
      process.env.SAUCE_USERNAME = require("./sauce").username;
      process.env.SAUCE_ACCESS_KEY = require("./sauce").accessKey;
    }
  }

  // Check out https://saucelabs.com/platforms for all browser/platform combos
  var customLaunchers = {
    "SL_Chrome": {
      base: "SauceLabs",
      browserName: "chrome",
      platform: "Linux"
    },
    "SL_Chrome_beta": {
      base: "SauceLabs",
      browserName: "chrome",
      platform: "Linux",
      verion: "beta"
    },
    "SL_IE": {
      base: "SauceLabs",
      browserName: "internet explorer"
    },
    "SL_IE_9": {
      base: "SauceLabs",
      browserName: "internet explorer",
      version: "9"
    },
    "SL_IE_8": {
      base: "SauceLabs",
      browserName: "internet explorer",
      version: "8"
    },
    "SL_Firefox": {
      base: "SauceLabs",
      browserName: "firefox"
    },
    "SL_Firefox_beta": {
      base: "SauceLabs",
      browserName: "firefox",
      version: "beta"
    },
    // These don't work yet in Sauce connect.
    /*
    "SL_iphone_ios8": {
      base: "SauceLabs",
      browserName: "iphone",
      platform: "OS X 10.9",
      version: "8.1",
      deviceName: "iPhone"
    },
    "SL_iphone_ios7": {
      base: "SauceLabs",
      browserName: "iphone",
      platform: "OS X 10.9",
      version: "7.1",
      deviceName: "iPhone"
    },
    "SL_iphone_ios6": {
      base: "SauceLabs",
      browserName: "iphone",
      platform: "OS X 10.8",
      version: "6.1",
      deviceName: "iPhone"
    },
     */
    "SL_android": {
      base: "SauceLabs",
      browserName: "android"
    },
    "SL_android_4_4": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.4"
    },
    "SL_android_4_3": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.3"
    },
    "SL_android_4_2": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.2"
    },
    "SL_android_4_1": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.1"
    },
    "SL_android_4_0": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.0"
    },
    "SL_safari": {
      base: "SauceLabs",
      browserName: "safari",
      platform: "OS X 10.10"
    },
    "SL_safari_7": {
      base: "SauceLabs",
      browserName: "safari",
      platform: "OS X 10.9",
      version: "7"
    },
    "SL_opera": {
      base: "SauceLabs",
      browserName: "Opera",
      platform: "Linux"
    }
  };

  config.set({
    basePath: "",
    frameworks: ["jasmine"],
    files: [
      "src/js/source.js",
      "test/unit/**/*.spec.js"
    ],
    reporters: ["dots", "saucelabs"],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    sauceLabs: {
      testName: "Cloudflare integration for Piwik unit tests"
    },
    captureTimeout: 120000,
    customLaunchers: customLaunchers,
    browsers: Object.keys(customLaunchers),
    singleRun: true
  });
};
<commit_msg>one more attempt with mobile safari<commit_after>var fs = require("fs");

module.exports = function(config) {

  // Use ENV vars on Travis and sauce.json locally to get credentials
  if (! process.env.SAUCE_USERNAME) {
    if (! fs.existsSync("sauce.json")) {
      console.log("Create a sauce.json with your credentials.");
      process.exit(1);
    } else {
      process.env.SAUCE_USERNAME = require("./sauce").username;
      process.env.SAUCE_ACCESS_KEY = require("./sauce").accessKey;
    }
  }

  // Check out https://saucelabs.com/platforms for all browser/platform combos
  var customLaunchers = {
    "SL_Chrome": {
      base: "SauceLabs",
      browserName: "chrome",
      platform: "Linux"
    },
    "SL_Chrome_beta": {
      base: "SauceLabs",
      browserName: "chrome",
      platform: "Linux",
      verion: "beta"
    },
    "SL_IE": {
      base: "SauceLabs",
      browserName: "internet explorer"
    },
    "SL_IE_10": {
      base: "SauceLabs",
      browserName: "internet explorer",
      version: "10"
    },
    "SL_IE_9": {
      base: "SauceLabs",
      browserName: "internet explorer",
      version: "9"
    },
    "SL_IE_8": {
      base: "SauceLabs",
      browserName: "internet explorer",
      version: "8"
    },
    "SL_Firefox": {
      base: "SauceLabs",
      browserName: "firefox"
    },
    "SL_Firefox_beta": {
      base: "SauceLabs",
      browserName: "firefox",
      version: "beta"
    },
    "SL_safari_ios8": {
      base: "SauceLabs",
      browserName: "iphone",
      platform: "OS X 10.9",
      version: "8.1"
    },
    "SL_safari_ios7": {
      base: "SauceLabs",
      browserName: "iphone",
      platform: "OS X 10.9",
      version: "7.1"
    },
    "SL_safari_ios6": {
      base: "SauceLabs",
      browserName: "iphone",
      platform: "OS X 10.8",
      version: "6.1"
    },
    "SL_android": {
      base: "SauceLabs",
      browserName: "android"
    },
    "SL_android_4_4": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.4"
    },
    "SL_android_4_3": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.3"
    },
    "SL_android_4_2": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.2"
    },
    "SL_android_4_1": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.1"
    },
    "SL_android_4_0": {
      base: "SauceLabs",
      browserName: "android",
      platform: "linux",
      version: "4.0"
    },
    "SL_safari": {
      base: "SauceLabs",
      browserName: "safari",
      platform: "OS X 10.10"
    },
    "SL_safari_7": {
      base: "SauceLabs",
      browserName: "safari",
      platform: "OS X 10.9",
      version: "7"
    },
    "SL_opera": {
      base: "SauceLabs",
      browserName: "Opera",
      platform: "Linux"
    }
  };

  config.set({
    basePath: "",
    frameworks: ["jasmine"],
    files: [
      "src/js/source.js",
      "test/unit/**/*.spec.js"
    ],
    reporters: ["dots", "saucelabs"],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    sauceLabs: {
      testName: "Cloudflare integration for Piwik unit tests"
    },
    captureTimeout: 120000,
    customLaunchers: customLaunchers,
    browsers: Object.keys(customLaunchers),
    singleRun: true
  });
};

{'fraction_non_alphanumeric': 0.1570151004251576, 'fraction_numerical': 0.018765576894883448, 'mean_word_length': 2.211864406779661, 'pattern_counts': {'":': 39, '<': 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': '1598828', 'n_tokens_mistral': 2571, 'n_tokens_neox': 2514, 'n_words': 492}