<commit_before>module.exports = function(grunt_module) {
  // Short-hand for shell tasks.
  var daemon_shell = function daemon_shell(name, command) {
    grunt_module.configure("shell", name, {
      command: command,
      options: { execOptions: { cwd: "snow-fox-daemon/" } }
    });
  };


  // Request modules.
  grunt_module.loadNpmTasks("grunt-contrib-clean");
  grunt_module.loadNpmTasks("grunt-shell");
  grunt_module.loadTasks("build-tools/grunt-tasks");


  // Clean tasks.
  grunt_module.configure("clean", "daemon.build", "snow-fox-daemon/build");
  grunt_module.configure("clean", "daemon.dist", "snow-fox-daemon/dist");
  grunt_module.configure("clean", "daemon.jenkins", [
    "snow-fox-daemon/coverage.xml",
    "snow-fox-daemon/cppcheck.xml",
    "snow-fox-daemon/test-results.xml"
  ]);

  grunt_module.aliasMore("clean:build", "clean:daemon.build");
  grunt_module.aliasMore("clean:dist", "clean:daemon.dist");
  grunt_module.alias("clean:daemon", [
    "clean:daemon.build",
    "clean:daemon.dist",
    "clean:daemon.jenkins"
  ]);


  // Debug aliases.
  grunt_module.configure("make", "daemon.debug", {
    configuration: "Debug",
    cwd: "snow-fox-daemon"
  });
  grunt_module.aliasMore("debug", "debug:daemon");
  grunt_module.alias("debug:daemon", "make:daemon.debug");


  // Jenkins aliases.
  daemon_shell(
      "daemon.jenkins.test",
      "dist/Test/test --gtest_output='xml:test-results.xml'"
  );
  daemon_shell("daemon.jenkins.coverage", (
      "../build-tools/gcovr --xml " +
      "--object-directory build/Test/GNU-Linux-x86/src " +
      "--root . --exclude='.*tests.*' > coverage.xml"
  ));
  grunt_module.configure("cpplint", "daemon", {
    options: { root: "snow-fox-daemon/include" },
    src: [
      "snow-fox-daemon/include/**/*.h",
      "snow-fox-daemon/src/**/*.cpp"
    ]
  });
  grunt_module.configure("cppcheck", "daemon", {
    exclude: ["3rd-parties", "snow-fox-daemon/tests"],
    include: ["snow-fox-daemon/include", "3rd-parties/include"],
    save_to: "snow-fox-daemon/cppcheck.xml",
    src: [
      "snow-fox-daemon/include/**/*.h",
      "snow-fox-daemon/src/**/*.cpp"
    ]
  });

  grunt_module.aliasMore("jenkins", "jenkins:daemon");
  grunt_module.alias("jenkins:daemon", [
    "clean:daemon.jenkins",
    "shell:daemon:Test",
    "shell:daemon.jenkins.test",
    "shell:daemon.jenkins.coverge",
    "cpplint:daemon",
    "cppcheck:daemon"
  ]);


  // Release aliases.
  grunt_module.configure("make", "daemon.release", {
    configuration: "Release",
    cwd: "snow-fox-daemon"
  });
  grunt_module.aliasMore("release", "release:daemon");
  grunt_module.alias("release:daemon", "make:daemon.release");


  // Test aliases.
  grunt_module.configure("make", "daemon.test", {
    configuration: "Test",
    cwd: "snow-fox-daemon"
  });
  daemon_shell("daemon.test", "dist/Test/test");
  grunt_module.aliasMore("test", "test:daemon");
  grunt_module.alias("test:daemon", [<commit_msg>Fixed typos in Jenkins grunt task.<commit_after>module.exports = function(grunt_module) {
  // Short-hand for shell tasks.
  var daemon_shell = function daemon_shell(name, command) {
    grunt_module.configure("shell", name, {
      command: command,
      options: { execOptions: { cwd: "snow-fox-daemon/" } }
    });
  };


  // Request modules.
  grunt_module.loadNpmTasks("grunt-contrib-clean");
  grunt_module.loadNpmTasks("grunt-shell");
  grunt_module.loadTasks("build-tools/grunt-tasks");


  // Clean tasks.
  grunt_module.configure("clean", "daemon.build", "snow-fox-daemon/build");
  grunt_module.configure("clean", "daemon.dist", "snow-fox-daemon/dist");
  grunt_module.configure("clean", "daemon.jenkins", [
    "snow-fox-daemon/coverage.xml",
    "snow-fox-daemon/cppcheck.xml",
    "snow-fox-daemon/test-results.xml"
  ]);

  grunt_module.aliasMore("clean:build", "clean:daemon.build");
  grunt_module.aliasMore("clean:dist", "clean:daemon.dist");
  grunt_module.alias("clean:daemon", [
    "clean:daemon.build",
    "clean:daemon.dist",
    "clean:daemon.jenkins"
  ]);


  // Debug aliases.
  grunt_module.configure("make", "daemon.debug", {
    configuration: "Debug",
    cwd: "snow-fox-daemon"
  });
  grunt_module.aliasMore("debug", "debug:daemon");
  grunt_module.alias("debug:daemon", "make:daemon.debug");


  // Jenkins aliases.
  daemon_shell(
      "daemon.jenkins.test",
      "dist/Test/test --gtest_output='xml:test-results.xml'"
  );
  daemon_shell("daemon.jenkins.coverage", (
      "../build-tools/gcovr --xml " +
      "--object-directory build/Test/GNU-Linux-x86/src " +
      "--root . --exclude='.*tests.*' > coverage.xml"
  ));
  grunt_module.configure("cpplint", "daemon", {
    options: { root: "snow-fox-daemon/include" },
    src: [
      "snow-fox-daemon/include/**/*.h",
      "snow-fox-daemon/src/**/*.cpp"
    ]
  });
  grunt_module.configure("cppcheck", "daemon", {
    exclude: ["3rd-parties", "snow-fox-daemon/tests"],
    include: ["snow-fox-daemon/include", "3rd-parties/include"],
    save_to: "snow-fox-daemon/cppcheck.xml",
    src: [
      "snow-fox-daemon/include/**/*.h",
      "snow-fox-daemon/src/**/*.cpp"
    ]
  });

  grunt_module.aliasMore("jenkins", "jenkins:daemon");
  grunt_module.alias("jenkins:daemon", [
    "clean:daemon.jenkins",
    "make:daemon.test",
    "shell:daemon.jenkins.test",
    "shell:daemon.jenkins.coverage",
    "cpplint:daemon",
    "cppcheck:daemon"
  ]);


  // Release aliases.
  grunt_module.configure("make", "daemon.release", {
    configuration: "Release",
    cwd: "snow-fox-daemon"
  });
  grunt_module.aliasMore("release", "release:daemon");
  grunt_module.alias("release:daemon", "make:daemon.release");


  // Test aliases.
  grunt_module.configure("make", "daemon.test", {
    configuration: "Test",
    cwd: "snow-fox-daemon"
  });
  daemon_shell("daemon.test", "dist/Test/test");
  grunt_module.aliasMore("test", "test:daemon");
  grunt_module.alias("test:daemon", [
{'fraction_non_alphanumeric': 0.1940550582671846, 'fraction_numerical': 0.0013511231210944098, 'mean_word_length': 3.677725118483412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, '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': '2229729', 'n_tokens_mistral': 2249, 'n_tokens_neox': 2206, 'n_words': 257}