<commit_before>module.exports = (grunt) ->
  path = require 'path'
  jaded = require 'jaded'
  grunt.registerMultiTask "jaded", "compile jade templates", ->
    files = grunt.file.expandFiles @file.src
    grunt.file.mkdir @file.dest
    for file in files
      base = path.basename file, path.extname file
      dest = path.join @file.dest, "#{base}.js"
      @data.options['filename'] = file
      templ = jaded.compile grunt.file.read(file), @data.options
      grunt.file.write dest, templ<commit_msg>added 'filename' option for includes<commit_after>module.exports = (grunt) ->
  path = require 'path'
  jaded = require 'jaded'
  grunt.registerMultiTask "jaded", "compile jade templates", ->
    files = grunt.file.expandFiles @file.src
    grunt.file.mkdir @file.dest
    for file in files
      base = path.basename file, path.extname file
      dest = path.join @file.dest, "#{base}.js"
      # for includes
      @data.options['filename'] = file
      templ = jaded.compile grunt.file.read(file), @data.options
      grunt.file.write dest, templ
{'fraction_non_alphanumeric': 0.12998102466793168, 'fraction_numerical': 0.0, 'mean_word_length': 3.1865079365079363, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3273285', 'n_tokens_mistral': 340, 'n_tokens_neox': 341, 'n_words': 85}