<commit_before>/**
 * Handlebars Helpers: Number Helpers
 * Copyright (c) 2013 <NAME>, <NAME>, contributors
 * Licensed under the MIT License (MIT).
 */
'use strict';


// node_modules
var _ = require('lodash');


// Local utils.
var Utils = require('../utils/utils');


// The module to be exported
var helpers = {

  /**
   * {{addCommas}}
   *
   * Add commas to numbers
   * @param {[type]} number [description]
   */
  addCommas: function (number) {
    return number.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
  },

 /**
  * {{formatPhoneNumber number}}
  * Output a formatted phone number
  * @author: http://bit.ly/QlPmPr
  * @param  {Number} phoneNumber [8005551212]
  * @return {Number}             [(800) 555-1212]
  */
  formatPhoneNumber: function (num) {
    var num = num.toString();

    if( num.substring( 0, 1 ) == 1 ) {
      num = num.slice( 1 );
    }

    if( [ "800", "888", "877", "866", "855", "844" ].indexOf( num.substring( 0, 3 ) ) === -1 ) {
      return "(" + num.substr(0, 3) + ") " + num.substr(3, 3) + "-" + num.substr(6, 4);
    }
    else {
     return "1-" + num.substr(0, 3) + "-" + num.substr(3, 3) + "-" + num.substr(6, 4);
    }
  },

 /**
  * {{formatPhoneNumberDashes number}}
  * Output a formatted phone number
  * @author: http://bit.ly/QlPmPr
  * @param  {Number} phoneNumber [8005551212]
  * @return {Number}             [1-800-555-1212]
  */
  formatPhoneNumberDashes: function (num) {
    var num = num.toString();

    if( num.substring( 0, 1 ) == 1 ) {
      doesStartWithNumberOne = true;<commit_msg>Removing a variable that is causing a build failure.<commit_after>/**
 * Handlebars Helpers: Number Helpers
 * Copyright (c) 2013 <NAME>, <NAME>, contributors
 * Licensed under the MIT License (MIT).
 */
'use strict';


// node_modules
var _ = require('lodash');


// Local utils.
var Utils = require('../utils/utils');


// The module to be exported
var helpers = {

  /**
   * {{addCommas}}
   *
   * Add commas to numbers
   * @param {[type]} number [description]
   */
  addCommas: function (number) {
    return number.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
  },

 /**
  * {{formatPhoneNumber number}}
  * Output a formatted phone number
  * @author: http://bit.ly/QlPmPr
  * @param  {Number} phoneNumber [8005551212]
  * @return {Number}             [(800) 555-1212]
  */
  formatPhoneNumber: function (num) {
    var num = num.toString();

    if( num.substring( 0, 1 ) == 1 ) {
      num = num.slice( 1 );
    }

    if( [ "800", "888", "877", "866", "855", "844" ].indexOf( num.substring( 0, 3 ) ) === -1 ) {
      return "(" + num.substr(0, 3) + ") " + num.substr(3, 3) + "-" + num.substr(6, 4);
    }
    else {
     return "1-" + num.substr(0, 3) + "-" + num.substr(3, 3) + "-" + num.substr(6, 4);
    }
  },

 /**
  * {{formatPhoneNumberDashes number}}
  * Output a formatted phone number
  * @author: http://bit.ly/QlPmPr
  * @param  {Number} phoneNumber [8005551212]
  * @return {Number}             [1-800-555-1212]
  */
  formatPhoneNumberDashes: function (num) {
    var num = num.toString();

    if( num.substring( 0, 1 ) == 1 ) {
{'fraction_non_alphanumeric': 0.19968051118210864, 'fraction_numerical': 0.05559105431309904, 'mean_word_length': 2.6449359720605354, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1439969', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1116, 'n_words': 279}