<commit_before>require 'thor'
require 'meetupanator'

module Meetupanator
  # class doco
  class CLI < Thor
    attr_accessor :event_finder
    attr_accessor :event_list_file_writer
    attr_accessor :api

    class_option :meetup_api_key,
                 type: :string, aliases: '-k',
                 desc: 'API key for the meetup.com API,
                        defaults to MEETUP_API_KEY environment
                        variable if not set'

    desc 'getevents', 'Write all upcoming events for the given meetup
                       groups specified in INPUT to OUTPUT'
    map 'getevents' => 'run_app'

    option :input, aliases: '-i', required: true, type: :string
    option :output, aliases: '-o', required: true, type: :string
    option :week, aliases: '-w', required: false, type: :boolean

    def run_app
      Meetupanator::App.run(options)
      puts "Output written to #{options[:output]}"
    end

    desc '--version', 'Print version'
    map '--version' => 'version'
    map '-v' => 'version'
    def version
      puts Meetupanator::App.version
    end

    default_task :getevents
  end
end<commit_msg>Fix broken default command line task.<commit_after>require 'thor'
require 'meetupanator'

module Meetupanator
  # class doco
  class CLI < Thor
    attr_accessor :event_finder
    attr_accessor :event_list_file_writer
    attr_accessor :api

    class_option :meetup_api_key,
                 type: :string, aliases: '-k',
                 desc: 'API key for the meetup.com API,
                        defaults to MEETUP_API_KEY environment
                        variable if not set'

    desc 'getevents', 'Write all upcoming events for the given meetup
                       groups specified in INPUT to OUTPUT'
    map 'getevents' => 'run_app'

    option :input, aliases: '-i', required: true, type: :string
    option :output, aliases: '-o', required: true, type: :string
    option :week, aliases: '-w', required: false, type: :boolean

    def run_app
      Meetupanator::App.run(options)
      puts "Output written to #{options[:output]}"
    end

    desc '--version', 'Print version'
    map '--version' => 'version'
    map '-v' => 'version'
    def version
      puts Meetupanator::App.version
    end

    default_task :run_app
  end
end
{'fraction_non_alphanumeric': 0.09667541557305337, 'fraction_numerical': 0.0, 'mean_word_length': 2.439097744360902, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5735701', 'n_tokens_mistral': 693, 'n_tokens_neox': 670, 'n_words': 222}