<commit_before>#!/usr/bin/env ruby
require 'rubygems'
require 'caty'

class Kitty < Caty

    global_options do
        desc("No meowing")
        boolean :quiet, false
    end

    desc("WHAT", "eats something\nWHAT is the food")
    task_options :s => :string
    def eat( what )
        puts "eating #{what} #{task_options.s}!" unless global_options.quiet
    end

    desc("sleeps a bit")
    def sleep
        puts "sleeping..." unless global_options.quiet
    end

    help_task

end

Kitty.start!

<commit_msg>cranked up the kitty program ;-)<commit_after>#!/usr/bin/env ruby
require 'rubygems'
require 'caty'

#
# A Kitty.
#
class Kitty < Caty

    global_options do

        #
        # It's trained not to meow if you tell it to be quiet...
        #
        desc('No meowing.')
        boolean :quiet, false

    end

    #
    # It needs to eat sometimes.
    #
    desc('SOMETHING', cut("
        Eats SOMETHING.
        You can tell it to -repeat the eating as often as you like.
    "))
    task_options :repeat => 1

    def eat( something )
        task_options.repeat.times { puts "The kitty eats #{something}!" }
        puts 'meow!' unless global_options.quiet
    end

    #
    # By default the kitty just meows at you.
    #
    def meow
        puts 'meow!' unless global_options.quiet
    end

    default :meow

    #
    # If you ask it politely, it will tell you what it can do.
    #
    help_task

end

#
# You could put this in a separate file and require it here
# instead, thus separating any tasks from the others and
# reducing interdependencies
#
Kitty.append do

    #
    # It can be sleepy...
    #
    desc("Sleeps a bit.")

    def sleep
        puts 'meow!' unless global_options.quiet
        puts 'The kitty sleeps...'
    end

end

#
# Pushes the kitty's on/off switch ;-)
#
Kitty.start!


{'fraction_non_alphanumeric': 0.09596510359869138, 'fraction_numerical': 0.0005452562704471102, 'mean_word_length': 2.1583476764199654, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6045818', 'n_tokens_mistral': 622, 'n_tokens_neox': 587, 'n_words': 206}