<commit_before>
fs         = require 'fs'
moment     = require 'moment'
sloc       = require 'sloc'
filewalker = require 'filewalker'
parser     = require 'gitignore-parser'

suffixes = [
  "asm"
  "c"
  "cc"
  "clj"
  "cljs"
  "coffee"
  "cpp"
  "cr"
  "cs"
  "css"
  "cxx"
  "erl"
  "go"
  "groovy"
  "gs"
  "h"
  "handlebars", "hbs"
  "hpp"
  "hr"
  "hs"
  "html", "htm"
  "hx"
  "hxx"
  "hy"
  "iced"
  "ino"
  "jade"
  "java"
  "jl"
  "js"
  "jsx"
  "less"
  "lua"
  "ls"
  "ml"
  "mli"
  "mochi"
  "monkey"
  "mustache"
  "nix"
  "nim"
  "php", "php5"
  "pl"
  "py"
  "r"
  "rb"
  "rkt"
  "rs"
  "sass"
  "scala"
  "scss"
  "styl"
  "svg"
  "swift"
  "ts"
  "vb"
  "xml"
  "yaml"
  "m"
  "mm"
]

pad = (num, w) ->
  num = '' + num
  while num.length < w then num = ' ' + num
  ' ' + num

addAttrs = (sfx, aIn, b) ->
  a = (aIn[sfx] ?= {})
  for k, v of b
    a[k] ?= 0
    a[k] += v
    null

module.exports =

  activate: ->
    try<commit_msg>Added .vue file support<commit_after>
fs         = require 'fs'
moment     = require 'moment'
sloc       = require 'sloc'
filewalker = require 'filewalker'
parser     = require 'gitignore-parser'

suffixes = [
  "asm"
  "c"
  "cc"
  "clj"
  "cljs"
  "coffee"
  "cpp"
  "cr"
  "cs"
  "css"
  "cxx"
  "erl"
  "go"
  "groovy"
  "gs"
  "h"
  "handlebars", "hbs"
  "hpp"
  "hr"
  "hs"
  "html", "htm"
  "hx"
  "hxx"
  "hy"
  "iced"
  "ino"
  "jade"
  "java"
  "jl"
  "js"
  "jsx"
  "less"
  "lua"
  "ls"
  "ml"
  "mli"
  "mochi"
  "monkey"
  "mustache"
  "nix"
  "nim"
  "php", "php5"
  "pl"
  "py"
  "r"
  "rb"
  "rkt"
  "rs"
  "sass"
  "scala"
  "scss"
  "styl"
  "svg"
  "swift"
  "ts"
  "vb"
  "vue"
  "xml"
  "yaml"
  "m"
  "mm"
]

pad = (num, w) ->
  num = '' + num
  while num.length < w then num = ' ' + num
  ' ' + num

addAttrs = (sfx, aIn, b) ->
  a = (aIn[sfx] ?= {})
  for k, v of b
    a[k] ?= 0
    a[k] += v
    null

module.exports =

  activate: ->
    try
{'fraction_non_alphanumeric': 0.20989583333333334, 'fraction_numerical': 0.0020833333333333333, 'mean_word_length': 1.9553846153846153, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1510596', 'n_tokens_mistral': 1040, 'n_tokens_neox': 1017, 'n_words': 225}