<commit_before>'use strict';

const moduleDirectory = __dirname;

var csslintDefaults = require('./lint-config/csslint.js');
var htmllintDefaults = require('./lint-config/htmllint.js');
var polymerlintDefaults = require('./lint-config/polymerlint.js');

var _ = require('lodash');
var gulp = require('gulp');
var path = require('path');

var $ = require('gulp-load-plugins')();
$.polymerLint = require('polymer-lint/gulp');

var transformObject = function(defaults, config) {
  var args = _.reduce(config, function(args, value, key) {
    return value ? _.concat(args, key) : _.without(args, key);
  }, defaults);

  return _.uniq(args);

};

module.exports = {

  eslint: function(target, config) {
    var args = _.assign({
      configFile: path.join(moduleDirectory, 'lint-config/eslint.js'),
    }, config);

    return function() {<commit_msg>play code golf<commit_after>'use strict';

const moduleDirectory = __dirname;

var csslintDefaults = require('./lint-config/csslint.js');
var htmllintDefaults = require('./lint-config/htmllint.js');
var polymerlintDefaults = require('./lint-config/polymerlint.js');

var _ = require('lodash');
var gulp = require('gulp');
var path = require('path');

var $ = require('gulp-load-plugins')();
$.polymerLint = require('polymer-lint/gulp');

var transformObject = function(defaults, config) {
  var iterator = function(key) {
    return config[key];
  };

  var enabled = _.union(defaults, _.filter(_.keys(config), iterator));
  return _.difference(enabled, _.reject(_.keys(config), iterator));

};

module.exports = {

  eslint: function(target, config) {
    var args = _.assign({
      configFile: path.join(moduleDirectory, 'lint-config/eslint.js'),
    }, config);

    return function() {
{'fraction_non_alphanumeric': 0.1702127659574468, 'fraction_numerical': 0.0, 'mean_word_length': 4.631067961165049, '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': '3324937', 'n_tokens_mistral': 559, 'n_tokens_neox': 533, 'n_words': 117}