<commit_before># an example karma.conf.coffee
module.exports = (config) ->
  browsers = ['Chrome','Firefox']
  if process.env.TRAVIS
    browsers = 'SL_Chrome,SL_Safari,SL_Firefox,SL_IE_8,SL_IE_9,SL_IE_10,SL_ANDROID_4,SL_IOS_4,SL_IOS_5,SL_IOS_6'.split(",")

  config.set
    frameworks: ['qunit']
    logLevel: config.LOG_DEBUG
    logColors: true
    browsers: browsers
    browserDisconnectTimeout: 5000
    singleRun: true
    files: [
      'node_modules/underscore/underscore.js'
      'node_modules/faketouches/faketouches.js'
      'hammer.js'
      'tests/*.js'
    ]

    # config for Travis CI
    sauceLabs:
      testName: 'Hammer.js'
      startConnect: false
      tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER


    # For more browsers on Sauce Labs see:
    # https://saucelabs.com/docs/platforms/webdriver
    customLaunchers:
      'SL_Chrome':
        base: 'SauceLabs',
        browserName: 'chrome'

      'SL_Firefox':
        base: 'SauceLabs',
        browserName: 'firefox'

      'SL_Safari':
        base: 'SauceLabs'
        browserName: 'safari'
        platform: 'Mac 10.8'
        version: '6'

      'SL_IE_8':
        base: 'SauceLabs',
        browserName: 'internet explorer'
        version: '8'

      'SL_IE_9':
        base: 'SauceLabs'
        browserName: 'internet explorer'
        version: '9'

      'SL_IE_10':
        base: 'SauceLabs'
        browserName: 'internet explorer'
        version: '10'

      'SL_ANDROID_4':
        base: 'SauceLabs'
        browserName: 'android'
        platform: 'Linux'
        version: '4.0'
        'device-orientation': 'portrait'

      'SL_IOS_4':
        base: 'SauceLabs'
        browserName: 'iphone'
        platform: 'OS X 10.6'
        version: '4'
        'device-orientation': 'portrait'

      'SL_IOS_5':
        base: 'SauceLabs'
        browserName: 'iphone'
        platform: 'OS X 10.6'
        version: '5.0'<commit_msg>better config<commit_after># an example karma.conf.coffee
module.exports = (config) ->
  browsers = ['Chrome','Firefox']
  if process.env.TRAVIS
    browsers = 'SL_Chrome,SL_Safari,SL_Firefox,SL_IE_9,SL_IE_10,SL_ANDROID_4,SL_IOS_4,SL_IOS_5,SL_IOS_6'.split(",")

  config.set
    frameworks: ['qunit']
    logLevel: config.LOG_DEBUG
    logColors: true
    browsers: browsers
    browserDisconnectTimeout: 5000
    singleRun: true
    files: [
      'node_modules/underscore/underscore.js'
      'node_modules/faketouches/faketouches.js'
      'hammer.js'
      'tests/*.js'
    ]

    # config for Travis CI
    sauceLabs:
      testName: 'Hammer.js'
      startConnect: false
      tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER


    # For more browsers on Sauce Labs see:
    # https://saucelabs.com/docs/platforms/webdriver
    customLaunchers:
      'SL_Chrome':
        base: 'SauceLabs',
        browserName: 'chrome'

      'SL_Firefox':
        base: 'SauceLabs',
        browserName: 'firefox'

      'SL_Safari':
        base: 'SauceLabs'
        browserName: 'safari'
        platform: 'Mac 10.8'
        version: '6'

      'SL_IE_9':
        base: 'SauceLabs'
        browserName: 'internet explorer'
        platform: 'Windows 7'
        version: '9'

      'SL_IE_10':
        base: 'SauceLabs'
        browserName: 'internet explorer'
        platform: 'Windows 8'
        version: '10'

      'SL_ANDROID_4':
        base: 'SauceLabs'
        browserName: 'android'
        platform: 'Linux'
        version: '4.0'
        'device-orientation': 'portrait'

      'SL_IOS_4':
        base: 'SauceLabs'
        browserName: 'iphone'
        platform: 'OS X 10.6'
        version: '4'
        'device-orientation': 'portrait'

      'SL_IOS_5':
        base: 'SauceLabs'
        browserName: 'iphone'
        platform: 'OS X 10.6'
        version: '5.0'
{'fraction_non_alphanumeric': 0.11811231215396784, 'fraction_numerical': 0.019773266543633008, 'mean_word_length': 2.2622527944969906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '760454', 'n_tokens_mistral': 1444, 'n_tokens_neox': 1380, 'n_words': 256}