<commit_before>require 'cmdparse'
require 'spiderfw/cmd/commands/webserver'
require 'spiderfw/cmd/commands/init'
require 'spiderfw/cmd/commands/console'
require 'spiderfw/cmd/commands/cert'
require 'spiderfw/cmd/commands/test'
require 'spiderfw/cmd/commands/setup'

module Spider; module CommandLine

    class Cmd

        def initialize
            Spider.init
            @cmd = CmdParse::CommandParser.new( true, true )
            @cmd.program_name = "spider"
            @cmd.options = CmdParse::OptionParserWrapper.new do |opt|
                opt.separator _("Global options:")
                opt.on("--verbose", _("Be verbose when outputting info"), "-v" ) {|t| $verbose = true }
            end

            @cmd.add_command(CmdParse::HelpCommand.new, true)
            @cmd.add_command(WebServerCommand.new)
            @cmd.add_command(InitCommand.new)
            @cmd.add_command(ConsoleCommand.new)
            @cmd.add_command(CertCommand.new)
            @cmd.add_command(TestCommand.new)
            @cmd.add_command(SetupCommand.new)
            # @cmd.add_command(ModelCommand.new)
            # @cmd.add_command(ScaffoldCommand.new)
        end

        def parse
            @cmd.parse
        end

    end

 


end; end<commit_msg>Added check for optional openssl library<commit_after>require 'cmdparse'
require 'spiderfw/cmd/commands/webserver'
require 'spiderfw/cmd/commands/init'
require 'spiderfw/cmd/commands/console'
require 'spiderfw/cmd/commands/test'
require 'spiderfw/cmd/commands/setup'

module Spider; module CommandLine

    class Cmd

        def initialize
            @cmd = CmdParse::CommandParser.new( true, true )
            @cmd.program_name = "spider"
            @cmd.options = CmdParse::OptionParserWrapper.new do |opt|
                opt.separator _("Global options:")
                opt.on("--verbose", _("Be verbose when outputting info"), "-v" ) {|t| $verbose = true }
            end

            @cmd.add_command(CmdParse::HelpCommand.new, true)
            @cmd.add_command(WebServerCommand.new)
            @cmd.add_command(InitCommand.new)
            @cmd.add_command(ConsoleCommand.new)
            begin
                require 'spiderfw/cmd/commands/cert'
                @cmd.add_command(CertCommand.new)
            rescue LoadError
            end
            @cmd.add_command(TestCommand.new)
            @cmd.add_command(SetupCommand.new)
            # @cmd.add_command(ModelCommand.new)
            # @cmd.add_command(ScaffoldCommand.new)
        end

        def parse
            @cmd.parse
        end

    end

 


end; end
{'fraction_non_alphanumeric': 0.10670261941448382, 'fraction_numerical': 0.0, 'mean_word_length': 2.17481662591687, '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': '6238700', 'n_tokens_mistral': 785, 'n_tokens_neox': 755, 'n_words': 137}