<commit_before>'use strict';

const notify = require('gulp-notify')
const shell = require('shelljs')
const chalk = require('chalk')
const beep = require('beep')

module.exports = function(error) {
  const lineNumber = (error.lineNumber) ? 'LINE ' + error.lineNumber + ' -- ' : ''
  const name = shell.exec('whoami', {silent:true}).stdout

  notify({
    title: 'Task failed [' + error.plugin + ']',
    subtitle: 'Goddamnit, ' + name,
    message: lineNumber + 'See terminal.',
    icon: 'https://apps.bostonglobe.com/common/img/disapproving.png',
    sound: 'Sosumi'
  }).write(error)

  beep()

  let report = `
    TASK: ${ error.plugin }
    PROB: ${ error.message }
    `

  if (error.lineNumber) {
    report += 'LINE:' + ' ' + error.lineNumber + '\n'
  }
<commit_msg>fixed beep to beeper<commit_after>'use strict';

const notify = require('gulp-notify')
const shell = require('shelljs')
const chalk = require('chalk')
const beep = require('beep')

module.exports = function(error) {
  const lineNumber = (error.lineNumber) ? 'LINE ' + error.lineNumber + ' -- ' : ''
  const name = shell.exec('whoami', {silent:true}).stdout

  notify({
    title: 'Task failed [' + error.plugin + ']',
    subtitle: 'Goddamnit, ' + name,
    message: lineNumber + 'See terminal.',
    icon: 'https://apps.bostonglobe.com/common/img/disapproving.png',
    sound: 'Sosumi'
  }).write(error)

  beeper()

  let report = `
    TASK: ${ error.plugin }
    PROB: ${ error.message }
    `

  if (error.lineNumber) {
    report += 'LINE:' + ' ' + error.lineNumber + '\n'
  }

{'fraction_non_alphanumeric': 0.1798330122029544, 'fraction_numerical': 0.0, 'mean_word_length': 3.3764044943820224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2549113', 'n_tokens_mistral': 542, 'n_tokens_neox': 531, 'n_words': 113}