<commit_before>class Kablame

  def initialize()
    @users = {}
  end
  
  def kablame
    folders.each do |directory|
      
      if File.exists?(directory) 
        puts "Processing #{directory}"
        Dir.new(directory).entries.grep(file_format_regex).each do |filename|
          process_file(directory +'/'+ filename)
        end
      else
        puts "#{directory} not found. Skipping it!"<commit_msg>Adding support for subfolder kablaming.<commit_after>class Kablame

  def initialize()
    @users = {}
  end
  
  def kablame
    folders.each do |directory|
      if File.exists?(directory) 
        puts "Processing #{directory}"
        Dir.glob(directory+"/**/*").grep(file_format_regex).each do |filename|
          process_file(filename)
        end
      else
        puts "#{directory} not found. Skipping it!"
{'fraction_non_alphanumeric': 0.11204819277108434, 'fraction_numerical': 0.0, 'mean_word_length': 2.5361702127659576, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5673988', 'n_tokens_mistral': 248, 'n_tokens_neox': 246, 'n_words': 60}