<commit_before>module Guard
  class CoffeeScript
    # This has been kindly borrowed from https://github.com/josh/ruby-coffee-script/raw/master/lib/coffee_script.rb
    # due to namespace conflicts
    module Compiler
      class << self
        def locate_coffee_bin
          out = `which coffee`
          if $?.success?
            out.chomp
          else
            raise LoadError, "could not find `coffee` in PATH"
          end
        end

        def coffee_bin
          @@coffee_bin ||= locate_coffee_bin
        end

        def coffee_bin=(path)<commit_msg>Explain changes on the Compiler class<commit_after>module Guard
  class CoffeeScript

    # This has been kindly borrowed from https://github.com/josh/ruby-coffee-script/raw/master/lib/coffee_script.rb
    # due to namespace conflicts with the guards own CoffeeScript class
    #
    # The only change to the original file is to redirect stderr to stdout when executing the compiler,
    # so that the error messages can easily be parsed and sent to the Growl notifier.
    #
    module Compiler
      class << self
        def locate_coffee_bin
          out = `which coffee`
          if $?.success?
            out.chomp
          else
            raise LoadError, "could not find `coffee` in PATH"
          end
        end

        def coffee_bin
          @@coffee_bin ||= locate_coffee_bin
        end

        def coffee_bin=(path)
{'fraction_non_alphanumeric': 0.06232294617563739, 'fraction_numerical': 0.0, 'mean_word_length': 2.0452586206896552, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1989355', 'n_tokens_mistral': 409, 'n_tokens_neox': 379, 'n_words': 132}