<commit_before>module.exports = function(grunt) {

  require('load-grunt-tasks')(grunt);

  var version = grunt.file.readJSON('package.json').version;

  // Project configuration.
  grunt.initConfig({
    // Custom configuration.
    path: {
      win32: 'build/<%= pkg.name %>-win32-ia32',
      win32_installer: 'build/win32-ia32-installer',
      darwin: 'build/<%= pkg.name %>-darwin-x64',
      release: 'build/release/<%= pkg.version %>'
    },
    file: {
      setup_exe: '<%= path.win32_installer %>/Setup.exe',
      RELEASES: '<%= path.win32_installer %>/RELEASES',
      nupkg_full: '<%= path.win32_installer %>/<%= pkg.name %>-<%= pkg.version %>-full.nupkg',
      nupkg_delta: '<%= path.win32_installer %>/<%= pkg.name %>-<%= pkg.version %>-delta.nupkg',
      win32_zip: '<%= path.release %>/<%= pkg.name %>-v<%= pkg.version %>-win32-ia32.zip',
      darwin_zip: '<%= path.release %>/<%= pkg.name %>-v<%= pkg.version %>-darwin-x64.zip',
      darwin_dmg: '<%= path.release %>/<%= pkg.name %>-v<%= pkg.version %>.dmg'
    },
    electron_version: '0.33.6',

    pkg: grunt.file.readJSON('package.json'),
    'create-windows-installer': {
      ia32: {
        appDirectory: '<%= path.win32 %>',
        outputDirectory: '<%= path.win32_installer %>',
        remoteReleases: 'https://github.com/ThomasLee969/net.tsinghua'
      }
    },
    shell: {
      build_win32: {
        command: 'electron-packager . <%= pkg.name %> --platform=win32 ' +
                 '--arch=ia32 --out=build/ --version=<%= electron_version %> ' +
                 '--asar=true --ignore=build/ --icon=resource/icon.ico ' +
                 '--app-version=<%= pkg.version %> --overwrite=true'
      },
      build_darwin: {
        command: 'electron-packager . <%= pkg.name %> --platform=darwin ' +
                 '--arch=x64 --out=build/ --version=<%= electron_version %> ' +
                 '--ignore=build/ --icon=resource/icon.icns ' +
                 '--app-version=<%= pkg.version %> --overwrite=true'
      },
      sign_darwin: {
        command: 'codesign -s "<NAME>" --deep <%= path.darwin %>/<%= pkg.name %>.app'
      },
      zip_win32: {
        command: 'zip -q --junk-paths <%= file.win32_zip %> <%= file.setup_exe %>'
      },
      zip_darwin: {<commit_msg>Make sure Nuts will provide .dmg to Mac users.<commit_after>module.exports = function(grunt) {

  require('load-grunt-tasks')(grunt);

  var version = grunt.file.readJSON('package.json').version;

  // Project configuration.
  grunt.initConfig({
    // Custom configuration.
    path: {
      win32: 'build/<%= pkg.name %>-win32-ia32',
      win32_installer: 'build/win32-ia32-installer',
      darwin: 'build/<%= pkg.name %>-darwin-x64',
      release: 'build/release/<%= pkg.version %>'
    },
    file: {
      setup_exe: '<%= path.win32_installer %>/Setup.exe',
      RELEASES: '<%= path.win32_installer %>/RELEASES',
      nupkg_full: '<%= path.win32_installer %>/<%= pkg.name %>-<%= pkg.version %>-full.nupkg',
      nupkg_delta: '<%= path.win32_installer %>/<%= pkg.name %>-<%= pkg.version %>-delta.nupkg',
      win32_zip: '<%= path.release %>/<%= pkg.name %>-v<%= pkg.version %>-win32-ia32.zip',
      darwin_zip: '<%= path.release %>/<%= pkg.name %>-v<%= pkg.version %>-darwin-x64.zip',
      darwin_dmg: '<%= path.release %>/<%= pkg.name %>-v<%= pkg.version %>-darwin-x64.dmg'
    },
    electron_version: '0.33.6',

    pkg: grunt.file.readJSON('package.json'),
    'create-windows-installer': {
      ia32: {
        appDirectory: '<%= path.win32 %>',
        outputDirectory: '<%= path.win32_installer %>',
        remoteReleases: 'https://github.com/ThomasLee969/net.tsinghua'
      }
    },
    shell: {
      build_win32: {
        command: 'electron-packager . <%= pkg.name %> --platform=win32 ' +
                 '--arch=ia32 --out=build/ --version=<%= electron_version %> ' +
                 '--asar=true --ignore=build/ --icon=resource/icon.ico ' +
                 '--app-version=<%= pkg.version %> --overwrite=true'
      },
      build_darwin: {
        command: 'electron-packager . <%= pkg.name %> --platform=darwin ' +
                 '--arch=x64 --out=build/ --version=<%= electron_version %> ' +
                 '--ignore=build/ --icon=resource/icon.icns ' +
                 '--app-version=<%= pkg.version %> --overwrite=true'
      },
      sign_darwin: {
        command: 'codesign -s "<NAME>" --deep <%= path.darwin %>/<%= pkg.name %>.app'
      },
      zip_win32: {
        command: 'zip -q --junk-paths <%= file.win32_zip %> <%= file.setup_exe %>'
      },
      zip_darwin: {
{'fraction_non_alphanumeric': 0.21142109851787272, 'fraction_numerical': 0.024411508282476024, 'mean_word_length': 2.347191830780452, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '704982', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1595, 'n_words': 246}