<commit_before>require 'org-ruby'
require 'org-converge/babel_output_buffer'
require 'org-converge/babel'
require 'org-converge/command'
require 'org-converge/engine'
require 'org-converge/version'

module Orgmode
  class Parser

    # This would return a babel output buffer which has the methods
    # needed in order to be able to tangle the files
    def babelize
      # Feed the parsed contens and create the necessary internal structures
      # for doing babel like features
      output = ''
      ob = BabelOutputBuffer.new(output)
      translate(@header_lines, ob)
      @headlines.each do |headline|
        translate(headline.body_lines, ob)
      end

      ob
    end
  end
end

module StringWithColors
  def red;    colorize("\e[0m\e[31m");  end
  def green;  colorize("\e[0m\e[32m");  end
  def yellow; colorize("\e[0m\e[33m");  end
  def bold;   colorize("\e[0m\e[1m");   end
  def colorize(color_code); "#{color_code}#{self}\e[0m"; end
end

class String
  include StringWithColors
end
<commit_msg>Add more colors<commit_after>require 'org-ruby'
require 'org-converge/babel_output_buffer'
require 'org-converge/babel'
require 'org-converge/command'
require 'org-converge/engine'
require 'org-converge/version'

module Orgmode
  class Parser

    # This would return a babel output buffer which has the methods
    # needed in order to be able to tangle the files
    def babelize
      # Feed the parsed contens and create the necessary internal structures
      # for doing babel like features
      output = ''
      ob = BabelOutputBuffer.new(output)
      translate(@header_lines, ob)
      @headlines.each do |headline|
        translate(headline.body_lines, ob)
      end

      ob
    end
  end
end

module StringWithColors
  def red;            colorize("\e[0m\e[31m");  end
  def green;          colorize("\e[0m\e[32m");  end
  def yellow;         colorize("\e[0m\e[33m");  end
  def blue;           colorize("\e[0m\e[34m");  end
  def magenta;        colorize("\e[0m\e[35m"); end
  def cyan;           colorize("\e[0m\e[36m"); end
  def white;          colorize("\e[0m\e[37m"); end
  def bright_black;   colorize("\e[0m\e[30m"); end
  def bright_magenta; colorize("\e[0m\e[35m"); end
  def bold;   colorize("\e[0m\e[1m");   end
  def colorize(color_code); "#{color_code}#{self}\e[0m"; end
end

class String
  include StringWithColors
end

{'fraction_non_alphanumeric': 0.11237853823405154, 'fraction_numerical': 0.017743979721166033, 'mean_word_length': 3.111111111111111, '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': '5131407', 'n_tokens_mistral': 831, 'n_tokens_neox': 812, 'n_words': 220}