<commit_before>var publicDirectory = "./public";
var publicAssets    = publicDirectory + "/assets";
var sourceDirectory = "./app";
var sourceAssets    = sourceDirectory + "/assets";

module.exports = {
  publicDirectory: publicDirectory,
  sourceAssets: sourceAssets,
  publicAssets: publicAssets,

  browserify: {
    bundleConfigs: [{
      entries: sourceAssets + '/javascripts/global.js',
      dest: publicAssets + '/javascripts',
      outputName: 'global.js',
      transform: ['babelify'],
      require: ['lodash']
    }, {
      entries: sourceAssets + '/javascripts/page.js',
      dest: publicAssets + '/javascripts',
      outputName: 'page.js',
      transform: ['babelify'],
      external: ['lodash']
    }]
  },

  browserSync: {
    server: {
      baseDir: publicDirectory
    },
    files: ['pubilc/**/*.html']
  },

  iconFont: {
    name: 'Gulp Starter Icons',
    src: sourceAssets + '/icons/*.svg',
    dest: publicAssets + '/fonts',
    sassDest: sourceAssets + '/stylesheets/generated',
    template: './gulpfile.js/tasks/iconFont/template.sass',
    sassOutputName: '_icons.sass',
    fontPath: '/assets/fonts',
    className: 'icon',
    options: {
      fontName: 'icons',
      appendCodepoints: true,
      normalize: false
    }
  },

  html: {
    watch: sourceDirectory + '/views/**/*.html',
    src: [sourceDirectory + '/views/**/*.html', '!**/{layouts,shared}/**'],
    dest: publicDirectory,
    swig: {
      defaults: { cache: false }
    }
  },

  images: {
    src: sourceAssets + "/images/**",
    dest: publicAssets + "/images"
  },

  karma: {
    frameworks: ['mocha', 'sinon-chai', 'browserify'],
    files: [
      'app/assets/javascripts/**/__tests__/*'
    ],
    preprocessors: {
      'app/assets/javascripts/**/__tests__/*': ['browserify']
    },
    browserify: {
      debug: true,
      transform: ['babelify']
    },
    singleRun: process.env.TRAVIS_CI === 'true',
    reporters: ['nyan'],
    browsers: ['Chrome']
  },

  server: {
    root: process.cwd() + publicDirectory.substr(1),
    port: process.env.PORT || 5000,
    logLevel: process.env.NODE_ENV ? 'combined' : 'dev',
    staticOptions: {
      extensions: ['html'],
      maxAge: '31556926'
    }
  },

  sass: {
    autoprefixer: { browsers: ['last 2 version'] },
    src: sourceAssets + "/stylesheets/**/*.{sass,scss}",
    dest: publicAssets + '/stylesheets',
    settings: {
      indentedSyntax: true, // Enable .sass syntax!
      imagePath: 'assets/images' // Used by the image-url helper
    }
  }
};<commit_msg>Use firefox for karma tests on Travis CI<commit_after>var publicDirectory = "./public";
var publicAssets    = publicDirectory + "/assets";
var sourceDirectory = "./app";
var sourceAssets    = sourceDirectory + "/assets";

module.exports = {
  publicDirectory: publicDirectory,
  sourceAssets: sourceAssets,
  publicAssets: publicAssets,

  browserify: {
    bundleConfigs: [{
      entries: sourceAssets + '/javascripts/global.js',
      dest: publicAssets + '/javascripts',
      outputName: 'global.js',
      transform: ['babelify'],
      require: ['lodash']
    }, {
      entries: sourceAssets + '/javascripts/page.js',
      dest: publicAssets + '/javascripts',
      outputName: 'page.js',
      transform: ['babelify'],
      external: ['lodash']
    }]
  },

  browserSync: {
    server: {
      baseDir: publicDirectory
    },
    files: ['pubilc/**/*.html']
  },

  iconFont: {
    name: 'Gulp Starter Icons',
    src: sourceAssets + '/icons/*.svg',
    dest: publicAssets + '/fonts',
    sassDest: sourceAssets + '/stylesheets/generated',
    template: './gulpfile.js/tasks/iconFont/template.sass',
    sassOutputName: '_icons.sass',
    fontPath: '/assets/fonts',
    className: 'icon',
    options: {
      fontName: 'icons',
      appendCodepoints: true,
      normalize: false
    }
  },

  html: {
    watch: sourceDirectory + '/views/**/*.html',
    src: [sourceDirectory + '/views/**/*.html', '!**/{layouts,shared}/**'],
    dest: publicDirectory,
    swig: {
      defaults: { cache: false }
    }
  },

  images: {
    src: sourceAssets + "/images/**",
    dest: publicAssets + "/images"
  },

  karma: {
    frameworks: ['mocha', 'sinon-chai', 'browserify'],
    files: [
      'app/assets/javascripts/**/__tests__/*'
    ],
    preprocessors: {
      'app/assets/javascripts/**/__tests__/*': ['browserify']
    },
    browserify: {
      debug: true,
      transform: ['babelify']
    },
    singleRun: process.env.TRAVIS_CI === 'true',
    reporters: ['nyan'],
    browsers: [(process.env.TRAVIS_CI === 'true'? 'Firefox' : 'Chrome')]
  },

  server: {
    root: process.cwd() + publicDirectory.substr(1),
    port: process.env.PORT || 5000,
    logLevel: process.env.NODE_ENV ? 'combined' : 'dev',
    staticOptions: {
      extensions: ['html'],
      maxAge: '31556926'
    }
  },

  sass: {
    autoprefixer: { browsers: ['last 2 version'] },
    src: sourceAssets + "/stylesheets/**/*.{sass,scss}",
    dest: publicAssets + '/stylesheets',
    settings: {
      indentedSyntax: true, // Enable .sass syntax!
      imagePath: 'assets/images' // Used by the image-url helper
    }
  }
};
{'fraction_non_alphanumeric': 0.172132738210751, 'fraction_numerical': 0.005433727925480303, 'mean_word_length': 2.764791818845873, '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': '3585794', 'n_tokens_mistral': 1748, 'n_tokens_neox': 1692, 'n_words': 342}