<commit_before>'use strict';
const fs = require('fs');
const appVersion = require('./package.json').version;
const electronVersion = require('./package.json').devDependencies.electron.replace('^', '');
const releaseUrl = require('./package.json').releaseUrl;
const certPassword = require('../CodeSigningPassword.json').password;

module.exports = (grunt) => {
  require('load-grunt-tasks')(grunt);
  grunt.initConfig({
    'electron-packager': {
      build: {
        options: (platform, arch) => {
          return {
            platform,
            arch,
            asar: false,
            prune: true,
            icon: './app/images/icon.ico',
            ignore: '^/.idea|^/build|^/dist|^/node_modules/(grunt.*|electron-?((?!config)|grunt).*)|^/Gruntfile.js|' +
            '^/clr/assets/images/*|^/eslint-rules',
            dir: '.',
            out: `./build/${appVersion}`,
            name: 'ControlCast',
            version: electronVersion,
            overwrite: true,
            'version-string': {
              CompanyName: 'DBKynd',
              LegalCopyright: 'Copyright (C) 2016 DBKynd',
              FileDescription: 'ControlCast',
              OriginalFilename: 'ControlCast.exe',
              ProductName: 'ControlCast',
              InternalName: 'ControlCast',
            },
            'app-copyright': 'Copyright (C) 2016 DBKynd',
            'app-version': appVersion,
            'build-version': appVersion,
          };
        },
      },
    },<commit_msg>breakout ignore into an array<commit_after>'use strict';
const fs = require('fs');
const appVersion = require('./package.json').version;
const electronVersion = require('./package.json').devDependencies.electron.replace('^', '');
const releaseUrl = require('./package.json').releaseUrl;
const certPassword = require('../CodeSigningPassword.json').password;

const ignore = [
  '^/.idea',
  '^/build',
  '^/dist',
  '^/node_modules/(grunt.*|electron(?!-config).*)',
  '^/Gruntfile.js',
  '^/clr/assets/images/*|^/eslint-rules',
  '^/\.git.*', // eslint-disable-line
  '^/\.*\.md', // eslint-disable-line
];

module.exports = (grunt) => {
  require('load-grunt-tasks')(grunt);
  grunt.initConfig({
    'electron-packager': {
      build: {
        options: (platform, arch) => {
          return {
            platform,
            arch,
            asar: false,
            prune: true,
            icon: './app/images/icon.ico',
            ignore: ignore.join('|'),
            dir: '.',
            out: `./build/${appVersion}`,
            name: 'ControlCast',
            version: electronVersion,
            overwrite: true,
            'version-string': {
              CompanyName: 'DBKynd',
              LegalCopyright: 'Copyright (C) 2016 DBKynd',
              FileDescription: 'ControlCast',
              OriginalFilename: 'ControlCast.exe',
              ProductName: 'ControlCast',
              InternalName: 'ControlCast',
            },
            'app-copyright': 'Copyright (C) 2016 DBKynd',
            'app-version': appVersion,
            'build-version': appVersion,
          };
        },
      },
    },
{'fraction_non_alphanumeric': 0.17070835992342054, 'fraction_numerical': 0.005105296745373325, 'mean_word_length': 2.0231436837029895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '168817', 'n_tokens_mistral': 919, 'n_tokens_neox': 886, 'n_words': 159}