<commit_before># vim:fileencoding=utf-8

require 'chef/client'
require 'chef/dsl/data_query'
require 'chef/log'
require 'chef/mixin/deep_merge'

class Attrbagger
  include Chef::DSL::DataQuery

  class << self
    def autoload!(run_context)
      log.info("Attrbagger auto-loading for #{run_context.node}")<commit_msg>Cleaning up requires a bit<commit_after># vim:fileencoding=utf-8

require 'chef'
require 'chef/dsl/data_query'
require 'chef/log'
require 'chef/mixin/deep_merge'

class Attrbagger
  include Chef::DSL::DataQuery

  class << self
    def autoload!(run_context)
      log.info("Attrbagger auto-loading for #{run_context.node}")
{'fraction_non_alphanumeric': 0.12305295950155763, 'fraction_numerical': 0.003115264797507788, 'mean_word_length': 5.303921568627451, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '4904787', 'n_tokens_mistral': 236, 'n_tokens_neox': 233, 'n_words': 47}