<commit_before>/*
 * logfile-grunt
 * https://github.com/brutaldev/logfile-grunt
 *
 * Copyright (c) 2014 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function (grunt, options) {
  var fs = require('fs');
  var hooker = require('hooker');

  // Help to correct Windows paths.
  var unixifyPath = function (filepath) {
    if (process.platform === 'win32') {
      return filepath.replace(/\\/g, '/');
    } else {
      return filepath;
    }
  };

  // Honor the no-write option.
  var nowrite = grunt.option('no-write');

  // Validate parameters and set to defaults.
  options = options || {};
  options.filePath = unixifyPath(options.filePath || './logs/grunt.log');
  options.clearLogFile = !!options.clearLogFile || false;

  if (!nowrite)<commit_msg>Always fix separators<commit_after>/*
 * logfile-grunt
 * https://github.com/brutaldev/logfile-grunt
 *
 * Copyright (c) 2014 <NAME>
 * Licensed under the MIT license.
 */

'use strict';

module.exports = function (grunt, options) {
  var fs = require('fs');
  var hooker = require('hooker');

  // Honor the no-write option.
  var nowrite = grunt.option('no-write');

  // Validate parameters and set to defaults.
  options = options || {};
  options.filePath = (options.filePath || './logs/grunt.log').replace(/\\/g, '/');
  options.clearLogFile = !!options.clearLogFile || false;

  if (!nowrite)
{'fraction_non_alphanumeric': 0.1647482014388489, 'fraction_numerical': 0.007194244604316547, 'mean_word_length': 3.29320987654321, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5475930', 'n_tokens_mistral': 466, 'n_tokens_neox': 449, 'n_words': 112}