<commit_before>module Less
  class Command
    def initialize options
      @source, @destination = options[:source], options[:destination]
      @options = options
    end
    def watch?() @options[:watch] end
    def compress?() @options[:compress] end
    
    # little function which allows us to Ctrl-C exit inside the passed block
    def watch &block
      begin
        block.call
      rescue Interrupt
        puts
        exit 0
      end
    end
      
    def run!
      if watch?
        log "Watching for changes in #@source ...Ctrl-C to abort.\n"
  
        # Main watch loop
        loop do
          watch { sleep 1 }
          
          # File has changed
          if File.stat( @source ).mtime > File.stat( @destination ).mtime
            log "Change detected... "
            
            # Loop until error is fixed
            while not compile
              log "Press [enter] to continue..."
              watch { $stdin.gets }
            end<commit_msg>whitespacing<commit_after>module Less
  class Command
    def initialize options
      @source, @destination = options[:source], options[:destination]
      @options = options
    end
    
    def watch?()    @options[:watch]    end
    def compress?() @options[:compress] end
    
    # little function which allows us to 
    # Ctrl-C exit inside the passed block
    def watch &block
      begin
        block.call
      rescue Interrupt
        puts
        exit 0
      end
    end
      
    def run!
      if watch?
        log "Watching for changes in #@source ...Ctrl-C to abort.\n"
  
        # Main watch loop
        loop do
          watch { sleep 1 }
          
          # File has changed
          if File.stat( @source ).mtime > File.stat( @destination ).mtime
            log "Change detected... "
            
            # Loop until error is fixed
            while not compile
              log "Press [enter] to continue..."
              watch { $stdin.gets }
            end
{'fraction_non_alphanumeric': 0.07917297024710035, 'fraction_numerical': 0.002017145738779627, 'mean_word_length': 1.4924623115577889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6050671', 'n_tokens_mistral': 516, 'n_tokens_neox': 508, 'n_words': 191}